OpenSDN source code
policy_action.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
3
* Copyright Contributors to the OpenSDN project
4
*/
5
6
#ifndef ctrlplane_policy_action_h
7
#define ctrlplane_policy_action_h
8
9
#include "
routing-policy/policy_vertex.h
"
10
11
class
PolicyActionVertex
:
public
PolicyGraphVertex
{
12
virtual
PolicyGraphVertex::VertexType
Type
() {
13
return
PolicyMatchVertex::POLICY_ACTION
;
14
}
15
16
virtual
bool
IsTerminal
() {
17
return
false
;
18
}
19
20
virtual
bool
IsAccept
() {
21
return
false
;
22
}
23
};
24
25
class
PolicyActionAccept
:
public
PolicyActionVertex
{
26
virtual
bool
IsTerminal
() {
27
return
true
;
28
}
29
30
virtual
bool
IsAccept
() {
31
return
true
;
32
}
33
};
34
35
class
PolicyActionReject
:
public
PolicyActionVertex
{
36
virtual
bool
IsAccept
() {
37
return
false
;
38
}
39
40
virtual
bool
IsTerminal
() {
41
return
true
;
42
}
43
};
44
45
#endif
// ctrlplane_policy_action_h
PolicyActionAccept
Definition:
policy_action.h:25
PolicyActionAccept::IsTerminal
virtual bool IsTerminal()
Definition:
policy_action.h:26
PolicyActionAccept::IsAccept
virtual bool IsAccept()
Definition:
policy_action.h:30
PolicyActionReject
Definition:
policy_action.h:35
PolicyActionReject::IsTerminal
virtual bool IsTerminal()
Definition:
policy_action.h:40
PolicyActionReject::IsAccept
virtual bool IsAccept()
Definition:
policy_action.h:36
PolicyActionVertex
Definition:
policy_action.h:11
PolicyActionVertex::Type
virtual PolicyGraphVertex::VertexType Type()
Definition:
policy_action.h:12
PolicyActionVertex::IsTerminal
virtual bool IsTerminal()
Definition:
policy_action.h:16
PolicyActionVertex::IsAccept
virtual bool IsAccept()
Definition:
policy_action.h:20
PolicyGraphVertex
Definition:
policy_vertex.h:24
PolicyGraphVertex::VertexType
VertexType
Definition:
policy_vertex.h:28
PolicyGraphVertex::POLICY_ACTION
@ POLICY_ACTION
Definition:
policy_vertex.h:30
policy_vertex.h
contrail
controller
src
routing-policy
policy_action.h
Generated by
1.9.1