|
OpenSDN source code
|
#include <vrf.h>


Classes | |
| class | DeleteActor |
Public Member Functions | |
| VrfEntry (const string &name, uint32_t flags, Agent *agent) | |
| virtual | ~VrfEntry () |
| virtual bool | IsLess (const DBEntry &rhs) const |
| virtual KeyPtr | GetDBRequestKey () const |
| virtual void | SetKey (const DBRequestKey *key) |
| virtual string | ToString () const |
| const uint32_t | vrf_id () const |
| const string & | GetName () const |
| VnEntry * | vn () const |
| VnEntry * | si_vn_ref () const |
| uint32_t | GetRefCount () const |
| uint32_t | flags () const |
| void | set_flags (uint32_t flags) |
| bool | are_flags_set (const VrfData::VrfEntryFlags &flags) const |
| void | set_table_label (uint32_t label) |
| uint32_t | table_label () const |
| const std::string & | GetExportName () |
| bool | learning_enabled () const |
| bool | ShouldExportRoute () const |
| bool | layer2_control_word () const |
| const uint32_t | hbf_rintf () const |
| const uint32_t | hbf_lintf () const |
| bool | DBEntrySandesh (Sandesh *sresp, std::string &name) const |
| InetUnicastRouteEntry * | GetUcRoute (const IpAddress &addr) const |
| InetUnicastRouteEntry * | GetUcRoute (const InetUnicastRouteEntry &rt_key) const |
| bool | UpdateVxlanId (Agent *agent, uint32_t new_vxlan_id) |
| LifetimeActor * | deleter () |
| virtual void | RetryDelete () |
| bool | AllRouteTablesEmpty () const |
| void | SendObjectLog (AgentLogEvent::type event) const |
| void | StartDeleteTimer () |
| bool | DeleteTimeout () |
| void | CancelDeleteTimer () |
| bool | ResetVrfDelete () |
| void | PostAdd () |
| void | AddNH (Ip4Address ip, uint8_t plen, ComponentNHData *nh_data) |
| void | DeleteNH (Ip4Address ip, uint8_t plen, ComponentNHData *nh_data) |
| uint32_t | GetNHCount (Ip4Address ip, uint8_t plen) |
| void | UpdateLabel (Ip4Address ip, uint8_t plen, uint32_t label) |
| uint32_t | GetLabel (Ip4Address ip, uint8_t plen) |
| uint32_t | vxlan_id () const |
| std::vector< ComponentNHData > * | GetNHList (Ip4Address ip, uint8_t plen) |
| bool | FindNH (const Ip4Address &ip, uint8_t plen, const ComponentNHData &nh_data) |
| InetUnicastAgentRouteTable * | GetInet4UnicastRouteTable () const |
| InetUnicastAgentRouteTable * | GetInet4MplsUnicastRouteTable () const |
| AgentRouteTable * | GetInet4MulticastRouteTable () const |
| AgentRouteTable * | GetEvpnRouteTable () const |
| AgentRouteTable * | GetBridgeRouteTable () const |
| InetUnicastAgentRouteTable * | GetInet6UnicastRouteTable () const |
| AgentRouteTable * | GetRouteTable (uint8_t table_type) const |
| void | CreateTableLabel (bool learning_enabled, bool l2, bool flod_unknown_unicast, bool layer2_control_word) |
| const std::string | GetTableTypeString (uint8_t table_type) const |
| bool | AllRouteTableDeleted () const |
| bool | RouteTableDeleted (uint8_t table_type) const |
| void | SetRouteTableDeleted (uint8_t table_type) |
| void | DeleteRouteTables () |
| void | ResyncRoutes () |
| bool | allow_route_add_on_deleted_vrf () const |
| void | set_allow_route_add_on_deleted_vrf (bool val) |
| InetUnicastAgentRouteTable * | GetInetUnicastRouteTable (const IpAddress &addr) const |
| void | ReleaseWalker () |
| uint32_t | isid () const |
| const std::string | bmac_vrf_name () const |
| bool | IsPbbVrf () const |
| uint32_t | mac_aging_time () const |
| void | set_mac_aging_time (uint32_t aging_time) |
| VrfEntry * | forwarding_vrf () const |
| int | rd () const |
| void | set_rd (int rd) |
| void | set_routing_vrf (bool val) |
| bool | routing_vrf () const |
| void | set_hbf_rintf (uint32_t idx) |
| void | set_hbf_lintf (uint32_t idx) |
Public Member Functions inherited from AgentOperDBEntry | |
| AgentOperDBEntry () | |
| virtual | ~AgentOperDBEntry () |
| IFMapNode * | ifmap_node () const |
| void | SetIFMapNodeState (IFMapDependencyManager::IFMapNodePtr sref) |
Public Member Functions inherited from AgentDBEntry | |
| 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) |
Public Member Functions inherited from DBEntry | |
| DBEntry () | |
| virtual | ~DBEntry () |
| bool | operator< (const DBEntry &rhs) const |
Public Member Functions inherited from DBEntryBase | |
| 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 () |
Static Public Attributes | |
| static const uint32_t | kInvalidIndex = 0xFFFFFFFF |
| static const uint32_t | kDeleteTimeout = 900 * 1000 |
Private Member Functions | |
| void | CreateRouteTables () |
| void | SetNotify () |
| int | RDInstanceId (bool tor_agent_enabled) const |
| DISALLOW_COPY_AND_ASSIGN (VrfEntry) | |
Private Member Functions inherited from AgentRefCount< VrfEntry > | |
| uint32_t | GetRefCount () const |
| AgentRefCount () | |
| AgentRefCount (const AgentRefCount &) | |
| AgentRefCount & | operator= (const AgentRefCount &) |
| virtual | ~AgentRefCount () |
| void | swap (AgentRefCount &) |
Private Attributes | |
| string | name_ |
| uint32_t | id_ |
| uint32_t | flags_ |
| VnEntryRef | vn_ |
| VnEntryRef | si_vn_ref_ |
| NextHopRef | nh_ |
| DBTableWalker::WalkId | walkid_ |
| boost::scoped_ptr< DeleteActor > | deleter_ |
| AgentRouteTable * | rt_table_db_ [Agent::ROUTE_TABLE_MAX] |
| Timer * | delete_timeout_timer_ |
| uint32_t | table_label_ |
| uint32_t | vxlan_id_ |
| uint32_t | rt_table_delete_bmap_ |
| IFMapDependencyManager::IFMapNodePtr | vrf_node_ptr_ |
| AgentRouteWalkerPtr | route_resync_walker_ |
| bool | allow_route_add_on_deleted_vrf_ |
| string | bmac_vrf_name_ |
| uint32_t | isid_ |
| tbb::atomic< uint32_t > | mac_aging_time_ |
| tbb::mutex | delete_reuse_mutex_ |
| bool | learning_enabled_ |
| bool | layer2_control_word_ |
| bool | l2_ |
| VrfEntryRef | forwarding_vrf_ |
| int | rd_ |
| bool | routing_vrf_ |
| uint32_t | retries_ |
| uint32_t | hbf_rintf_ |
| uint32_t | hbf_lintf_ |
| bool | deleted_ |
Private Attributes inherited from AgentRefCount< VrfEntry > | |
| tbb::mutex | back_ref_mutex_ |
| std::set< IntrusiveReferrer > | back_ref_set_ |
Friends | |
| class | VrfTable |
Additional Inherited Members | |
Public Types inherited from AgentDBEntry | |
| typedef boost::intrusive_ptr< AgentDBEntry > | AgentDBEntyRef |
Public Types inherited from DBEntryBase | |
| typedef DBTableBase::ListenerId | ListenerId |
| typedef std::unique_ptr< DBRequestKey > | KeyPtr |
Public Attributes inherited from DBEntryBase | |
| boost::intrusive::list_member_hook | chg_list_ |
| VrfEntry::VrfEntry | ( | const string & | name, |
| uint32_t | flags, | ||
| Agent * | agent | ||
| ) |
|
virtual |
| void VrfEntry::AddNH | ( | Ip4Address | ip, |
| uint8_t | plen, | ||
| ComponentNHData * | nh_data | ||
| ) |
|
inline |
|
inline |
| void VrfEntry::CancelDeleteTimer | ( | ) |
|
private |
| void VrfEntry::CreateTableLabel | ( | bool | learning_enabled, |
| bool | l2, | ||
| bool | flod_unknown_unicast, | ||
| bool | layer2_control_word | ||
| ) |
|
virtual |
Implements AgentDBEntry.
Definition at line 342 of file vrf.cc.

| void VrfEntry::DeleteNH | ( | Ip4Address | ip, |
| uint8_t | plen, | ||
| ComponentNHData * | nh_data | ||
| ) |
| LifetimeActor * VrfEntry::deleter | ( | ) |
| void VrfEntry::DeleteRouteTables | ( | ) |
| bool VrfEntry::DeleteTimeout | ( | ) |
|
private |
| bool VrfEntry::FindNH | ( | const Ip4Address & | ip, |
| uint8_t | plen, | ||
| const ComponentNHData & | nh_data | ||
| ) |
| AgentRouteTable * VrfEntry::GetBridgeRouteTable | ( | ) | const |
|
virtual |
Implements DBEntryBase.
| AgentRouteTable * VrfEntry::GetEvpnRouteTable | ( | ) | const |
|
inline |
| InetUnicastAgentRouteTable * VrfEntry::GetInet4MplsUnicastRouteTable | ( | ) | const |
| AgentRouteTable * VrfEntry::GetInet4MulticastRouteTable | ( | ) | const |
| InetUnicastAgentRouteTable * VrfEntry::GetInet4UnicastRouteTable | ( | ) | const |
| InetUnicastAgentRouteTable * VrfEntry::GetInet6UnicastRouteTable | ( | ) | const |
| InetUnicastAgentRouteTable * VrfEntry::GetInetUnicastRouteTable | ( | const IpAddress & | addr | ) | const |
| uint32_t VrfEntry::GetLabel | ( | Ip4Address | ip, |
| uint8_t | plen | ||
| ) |
| uint32_t VrfEntry::GetNHCount | ( | Ip4Address | ip, |
| uint8_t | plen | ||
| ) |
| std::vector<ComponentNHData>* VrfEntry::GetNHList | ( | Ip4Address | ip, |
| uint8_t | plen | ||
| ) |
|
inlinevirtual |
Implements AgentDBEntry.
Definition at line 104 of file vrf.h.

| AgentRouteTable * VrfEntry::GetRouteTable | ( | uint8_t | table_type | ) | const |
| const std::string VrfEntry::GetTableTypeString | ( | uint8_t | table_type | ) | const |
| InetUnicastRouteEntry * VrfEntry::GetUcRoute | ( | const InetUnicastRouteEntry & | rt_key | ) | const |
| InetUnicastRouteEntry * VrfEntry::GetUcRoute | ( | const IpAddress & | addr | ) | const |
|
virtual |
|
inline |
|
virtual |
Reimplemented from AgentDBEntry.
Definition at line 168 of file vrf.cc.

|
private |
| void VrfEntry::ReleaseWalker | ( | ) |
| bool VrfEntry::ResetVrfDelete | ( | ) |
|
virtual |
| void VrfEntry::SendObjectLog | ( | AgentLogEvent::type | event | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
virtual |
|
private |
|
inline |
| void VrfEntry::StartDeleteTimer | ( | ) |
|
virtual |
Implements DBEntryBase.
| void VrfEntry::UpdateLabel | ( | Ip4Address | ip, |
| uint8_t | plen, | ||
| uint32_t | label | ||
| ) |
| bool VrfEntry::UpdateVxlanId | ( | Agent * | agent, |
| uint32_t | new_vxlan_id | ||
| ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |