OpenSDN source code
|
#include <policy.h>
Public Types | |
typedef std::vector< AclPtr > | AclPtrList |
![]() | |
typedef DBTableBase::ListenerId | ListenerId |
typedef std::unique_ptr < DBRequestKey > | KeyPtr |
Public Member Functions | |
Policy (const uuid id) | |
Policy () | |
~Policy () | |
void | Init (const PolicyData *req) |
bool | AddAcl (const uuid acl_id) |
bool | IsLess (const DBEntry &rhs) const |
KeyPtr | GetDBRequestKey () const |
void | SetKey (const DBRequestKey *key) |
void | SetName (const std::string str) |
std::string | ToString () const |
AclPtr | FindAcl (const bool inbound, const uuid acl_id) |
void | InsertAcl (const bool inbound, const AclPtr acl) |
void | DeleteAcl (const bool inbound, const uuid acl_id) |
bool | PacketMatch (const PacketHeader &packet_header, const bool inbound, AclEntry::ActionList &sal) |
![]() | |
DBEntry () | |
virtual | ~DBEntry () |
bool | operator< (const DBEntry &rhs) const |
![]() | |
DBEntryBase () | |
virtual | ~DBEntryBase () |
virtual bool | IsMoreSpecific (const std::string &match) const |
virtual bool | IsLessSpecific (const std::string &match) const |
void | SetState (DBTableBase *tbl_base, ListenerId listener, DBState *state) |
void | ClearState (DBTableBase *tbl_base, ListenerId listener) |
DBState * | GetState (DBTableBase *tbl_base, ListenerId listener) const |
const DBState * | GetState (const DBTableBase *tbl_base, ListenerId listener) const |
bool | is_state_empty (DBTablePartBase *tpart) |
bool | is_state_empty_unlocked (DBTablePartBase *tpart) |
void | Delete () |
void | MarkDelete () |
void | ClearDelete () |
bool | IsDeleted () const |
void | set_onlist () |
void | clear_onlist () |
bool | is_onlist () |
void | SetOnRemoveQ () |
bool | IsOnRemoveQ () |
void | ClearOnRemoveQ () |
void | set_last_change_at (uint64_t time) |
void | set_last_change_at_to_now () |
const uint64_t | last_change_at () const |
const std::string | last_change_at_str () const |
void | set_last_update_at (uint64_t time) |
void | set_last_update_at_to_now () |
const uint64_t | last_update_at () const |
DBTablePartBase * | get_table_partition () const |
void | set_table_partition (DBTablePartBase *tpart) |
DBTableBase * | get_table () const |
void | Notify () |
Private Attributes | |
uuid | vpc_id_ |
uuid | policy_id_ |
std::string | name_ |
AclPtrList | inbound_acls_ |
AclPtrList | outbound_acls_ |
Additional Inherited Members | |
![]() | |
boost::intrusive::list_member_hook | chg_list_ |
Definition at line 30 of file vnsw/agent/filter/policy.h.
typedef std::vector<AclPtr> Policy::AclPtrList |
Definition at line 32 of file vnsw/agent/filter/policy.h.
|
inline |
Definition at line 34 of file vnsw/agent/filter/policy.h.
|
inline |
Definition at line 37 of file vnsw/agent/filter/policy.h.
void Policy::DeleteAcl | ( | const bool | inbound, |
const uuid | acl_id | ||
) |
AclPtr Policy::FindAcl | ( | const bool | inbound, |
const uuid | acl_id | ||
) |
|
virtual |
Implements DBEntryBase.
void Policy::Init | ( | const PolicyData * | req | ) |
void Policy::InsertAcl | ( | const bool | inbound, |
const AclPtr | acl | ||
) |
|
virtual |
bool Policy::PacketMatch | ( | const PacketHeader & | packet_header, |
const bool | inbound, | ||
AclEntry::ActionList & | sal | ||
) |
|
virtual |
|
virtual |
Implements DBEntryBase.
|
private |
Definition at line 55 of file vnsw/agent/filter/policy.h.
|
private |
Definition at line 54 of file vnsw/agent/filter/policy.h.
|
private |
Definition at line 56 of file vnsw/agent/filter/policy.h.
|
private |
Definition at line 53 of file vnsw/agent/filter/policy.h.
|
private |
Definition at line 52 of file vnsw/agent/filter/policy.h.