OpenSDN source code
|
#include <mpls.h>
Public Types | |
typedef DependencyList < AgentRoute, MplsLabel > | DependentPathList |
typedef std::map< std::string, NextHopRef > | FmgVrfNhMap |
![]() | |
typedef boost::intrusive_ptr < AgentDBEntry > | AgentDBEntyRef |
![]() | |
typedef DBTableBase::ListenerId | ListenerId |
typedef std::unique_ptr < DBRequestKey > | KeyPtr |
Public Member Functions | |
MplsLabel (Agent *agent, uint32_t label) | |
virtual | ~MplsLabel () |
virtual bool | IsLess (const DBEntry &rhs) const |
virtual std::string | ToString () const |
virtual void | SetKey (const DBRequestKey *key) |
virtual KeyPtr | GetDBRequestKey () const |
virtual uint32_t | GetRefCount () const |
virtual bool | DBEntrySandesh (Sandesh *sresp, std::string &name) const |
void | Add (const DBRequest *req) |
bool | Change (const DBRequest *req) |
void | Delete (const DBRequest *req) |
bool | ChangeInternal (const DBRequest *req) |
bool | ChangeNH (NextHop *nh) |
void | SyncDependentPath () |
bool | IsFabricMulticastReservedLabel () const |
void | SendObjectLog (const AgentDBTable *table, AgentLogEvent::type event) const |
uint32_t | label () const |
const NextHop * | nexthop () const |
FmgVrfNhMap & | fmg_nh_list () |
![]() | |
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 | |
DEPENDENCY_LIST (AgentRoute, MplsLabel, mpls_label_) | |
DISALLOW_COPY_AND_ASSIGN (MplsLabel) | |
![]() | |
uint32_t | GetRefCount () const |
AgentRefCount () | |
AgentRefCount (const AgentRefCount &) | |
AgentRefCount & | operator= (const AgentRefCount &) |
virtual | ~AgentRefCount () |
void | swap (AgentRefCount &) |
Private Attributes | |
Agent * | agent_ |
uint32_t | label_ |
bool | free_label_ |
NextHop * | nh_ |
FmgVrfNhMap | fmg_nh_list_ |
![]() | |
tbb::mutex | back_ref_mutex_ |
std::set< IntrusiveReferrer > | back_ref_set_ |
Friends | |
class | MplsTable |
Additional Inherited Members | |
![]() | |
boost::intrusive::list_member_hook | chg_list_ |
typedef std::map<std::string, NextHopRef> MplsLabel::FmgVrfNhMap |
|
virtual |
void MplsLabel::Add | ( | const DBRequest * | req | ) |
bool MplsLabel::Change | ( | const DBRequest * | req | ) |
bool MplsLabel::ChangeInternal | ( | const DBRequest * | req | ) |
bool MplsLabel::ChangeNH | ( | NextHop * | nh | ) |
|
virtual |
Implements AgentDBEntry.
Definition at line 144 of file mpls.cc.
void MplsLabel::Delete | ( | const DBRequest * | req | ) |
|
private |
|
private |
|
inline |
|
virtual |
Implements DBEntryBase.
|
virtual |
Implements AgentDBEntry.
Definition at line 59 of file mpls.cc.
bool MplsLabel::IsFabricMulticastReservedLabel | ( | ) | const |
|
virtual |
void MplsLabel::SendObjectLog | ( | const AgentDBTable * | table, |
AgentLogEvent::type | event | ||
) | const |
|
virtual |
void MplsLabel::SyncDependentPath | ( | ) |
|
virtual |
Implements DBEntryBase.
|
private |