OpenSDN source code
|
#include <acl.h>
Public Types | |
typedef boost::intrusive::member_hook < AclEntry, boost::intrusive::list_member_hook <>,&AclEntry::acl_list_node > | AclEntryNode |
typedef boost::intrusive::list < AclEntry, AclEntryNode > | AclEntries |
![]() | |
typedef boost::intrusive_ptr < AgentDBEntry > | AgentDBEntyRef |
![]() | |
typedef DBTableBase::ListenerId | ListenerId |
typedef std::unique_ptr < DBRequestKey > | KeyPtr |
Public Member Functions | |
AclDBEntry (const boost::uuids::uuid &id) | |
~AclDBEntry () | |
bool | IsLess (const DBEntry &rhs) const |
KeyPtr | GetDBRequestKey () const |
void | SetKey (const DBRequestKey *key) |
std::string | ToString () const |
uint32_t | GetRefCount () const |
const boost::uuids::uuid & | GetUuid () const |
const std::string & | GetName () const |
void | SetName (const std::string name) |
bool | DBEntrySandesh (Sandesh *resp, std::string &name) const |
void | SetAclSandeshData (AclSandeshData &data) const |
AclEntry * | AddAclEntry (const AclEntrySpec &acl_entry_spec, AclEntries &entries) |
bool | DeleteAclEntry (const uint32_t acl_entry_id) |
void | DeleteAllAclEntries () |
uint32_t | Size () const |
void | SetAclEntries (AclEntries &entries) |
void | SetDynamicAcl (bool dyn) |
bool | GetDynamicAcl () const |
bool | PacketMatch (const PacketHeader &packet_header, MatchAclParams &m_acl, FlowPolicyInfo *info) const |
bool | Changed (const AclEntries &new_acl_entries) const |
uint32_t | ace_count () const |
bool | IsRulePresent (const std::string &uuid) const |
bool | ResyncQosConfigEntries () |
bool | IsQosConfigResolved () |
bool | Isresolved () |
const AclEntry * | GetAclEntryAtIndex (uint32_t) const |
![]() | |
AgentOperDBEntry () | |
virtual | ~AgentOperDBEntry () |
IFMapNode * | ifmap_node () const |
void | SetIFMapNodeState (IFMapDependencyManager::IFMapNodePtr sref) |
![]() | |
AgentDBEntry () | |
virtual | ~AgentDBEntry () |
void | SetRefState () const |
void | ClearRefState () const |
bool | IsActive () const |
DBState * | GetAgentDBEntryState (int listener_id) |
const DBState * | GetAgentDBEntryState (int listener_id) const |
virtual void | AllocateResources (ResourceManager *resource_manager) |
virtual void | FreeResources (ResourceManager *resource_manager) |
virtual void | PostAdd () |
![]() | |
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 Member Functions | |
DISALLOW_COPY_AND_ASSIGN (AclDBEntry) | |
![]() | |
uint32_t | GetRefCount () const |
AgentRefCount () | |
AgentRefCount (const AgentRefCount &) | |
AgentRefCount & | operator= (const AgentRefCount &) |
virtual | ~AgentRefCount () |
void | swap (AgentRefCount &) |
Private Attributes | |
boost::uuids::uuid | uuid_ |
bool | dynamic_acl_ |
std::string | name_ |
AclEntries | acl_entries_ |
![]() | |
tbb::mutex | back_ref_mutex_ |
std::set< IntrusiveReferrer > | back_ref_set_ |
Friends | |
class | AclTable |
Additional Inherited Members | |
![]() | |
boost::intrusive::list_member_hook | chg_list_ |
typedef boost::intrusive::list<AclEntry, AclEntryNode> AclDBEntry::AclEntries |
typedef boost::intrusive::member_hook<AclEntry, boost::intrusive::list_member_hook<>, &AclEntry::acl_list_node> AclDBEntry::AclEntryNode |
|
inline |
AclEntry * AclDBEntry::AddAclEntry | ( | const AclEntrySpec & | acl_entry_spec, |
AclEntries & | entries | ||
) |
bool AclDBEntry::Changed | ( | const AclEntries & | new_acl_entries | ) | const |
|
virtual |
Implements AgentDBEntry.
Definition at line 68 of file acl.cc.
bool AclDBEntry::DeleteAclEntry | ( | const uint32_t | acl_entry_id | ) |
|
private |
const AclEntry * AclDBEntry::GetAclEntryAtIndex | ( | uint32_t | index | ) | const |
|
virtual |
Implements DBEntryBase.
|
inlinevirtual |
Implements AgentDBEntry.
Definition at line 109 of file acl.h.
|
inline |
|
virtual |
bool AclDBEntry::IsQosConfigResolved | ( | ) |
bool AclDBEntry::Isresolved | ( | ) |
bool AclDBEntry::IsRulePresent | ( | const std::string & | uuid | ) | const |
bool AclDBEntry::PacketMatch | ( | const PacketHeader & | packet_header, |
MatchAclParams & | m_acl, | ||
FlowPolicyInfo * | info | ||
) | const |
bool AclDBEntry::ResyncQosConfigEntries | ( | ) |
void AclDBEntry::SetAclEntries | ( | AclEntries & | entries | ) |
void AclDBEntry::SetAclSandeshData | ( | AclSandeshData & | data | ) | const |
|
virtual |
|
virtual |
Implements DBEntryBase.
|
private |
|
private |