OpenSDN source code
|
#include <vrf_assign.h>
Classes | |
struct | VrfAssignData |
struct | VrfAssignKey |
Public Types | |
enum | Type { INVALID, VLAN } |
![]() | |
typedef boost::intrusive_ptr < AgentDBEntry > | AgentDBEntyRef |
![]() | |
typedef DBTableBase::ListenerId | ListenerId |
typedef std::unique_ptr < DBRequestKey > | KeyPtr |
Public Member Functions | |
VrfAssign (Type type, Interface *intrface) | |
virtual | ~VrfAssign () |
uint32_t | GetRefCount () const |
bool | IsLess (const DBEntry &rhs) const |
bool | Change (const DBRequest *req) |
virtual bool | VrfAssignIsLess (const VrfAssign &rhs) const =0 |
virtual bool | VrfAssignChange (const DBRequest *req) |
const Type | GetType () const |
const Interface * | GetInterface () const |
const VrfEntry * | GetVrf () const |
![]() | |
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 () |
virtual bool | DBEntrySandesh (Sandesh *resp, std::string &name) const =0 |
![]() | |
DBEntry () | |
virtual | ~DBEntry () |
virtual void | SetKey (const DBRequestKey *key)=0 |
bool | operator< (const DBEntry &rhs) const |
![]() | |
DBEntryBase () | |
virtual | ~DBEntryBase () |
virtual std::string | ToString () const =0 |
virtual KeyPtr | GetDBRequestKey () const =0 |
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 () |
Protected Member Functions | |
void | SetVrf (VrfEntry *vrf) |
Protected Attributes | |
Type | type_ |
InterfaceRef | interface_ |
VrfEntryRef | vrf_ |
Private Member Functions | |
DISALLOW_COPY_AND_ASSIGN (VrfAssign) | |
![]() | |
uint32_t | GetRefCount () const |
AgentRefCount () | |
AgentRefCount (const AgentRefCount &) | |
AgentRefCount & | operator= (const AgentRefCount &) |
virtual | ~AgentRefCount () |
void | swap (AgentRefCount &) |
Friends | |
class | VrfAssignTable |
Additional Inherited Members | |
![]() | |
boost::intrusive::list_member_hook | chg_list_ |
![]() | |
tbb::mutex | back_ref_mutex_ |
std::set< IntrusiveReferrer > | back_ref_set_ |
Definition at line 16 of file vrf_assign.h.
enum VrfAssign::Type |
Enumerator | |
---|---|
INVALID | |
VLAN |
Definition at line 18 of file vrf_assign.h.
Definition at line 46 of file vrf_assign.h.
|
inlinevirtual |
Definition at line 48 of file vrf_assign.h.
bool VrfAssign::Change | ( | const DBRequest * | req | ) |
|
private |
|
inline |
Definition at line 60 of file vrf_assign.h.
|
inlinevirtual |
Implements AgentDBEntry.
Definition at line 50 of file vrf_assign.h.
|
inline |
Definition at line 59 of file vrf_assign.h.
|
inline |
Definition at line 61 of file vrf_assign.h.
|
virtual |
Implements DBEntry.
Definition at line 156 of file vrf_assign.cc.
|
inlineprotected |
Definition at line 65 of file vrf_assign.h.
|
inlinevirtual |
Reimplemented in VlanVrfAssign.
Definition at line 57 of file vrf_assign.h.
|
pure virtual |
Implemented in VlanVrfAssign.
|
friend |
Definition at line 61 of file vrf_assign.h.
|
protected |
Definition at line 67 of file vrf_assign.h.
|
protected |
Definition at line 65 of file vrf_assign.h.
|
protected |
Definition at line 68 of file vrf_assign.h.