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