OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OVSDB::HaStaleL2RouteTable Class Reference

#include <ha_stale_l2_route.h>

Inheritance diagram for OVSDB::HaStaleL2RouteTable:
Collaboration diagram for OVSDB::HaStaleL2RouteTable:

Public Member Functions

 HaStaleL2RouteTable (HaStaleDevVnEntry *dev_vn, AgentRouteTable *table)
 
virtual ~HaStaleL2RouteTable ()
 
KSyncEntryAlloc (const KSyncEntry *key, uint32_t index)
 
KSyncEntryDBToKSyncEntry (const DBEntry *)
 
DBFilterResp OvsdbDBEntryFilter (const DBEntry *entry, const OvsdbDBEntry *ovsdb_entry)
 
Agentagent () const
 
void ManagedDelete ()
 
virtual void EmptyTable ()
 
Ip4Address dev_ip () const
 
uint32_t vxlan_id () const
 
const std::string & vn_name () const
 
const std::string & vrf_name () const
 
void UpdateParams (HaStaleDevVnEntry *dev_vn)
 
- Public Member Functions inherited from OVSDB::OvsdbDBObject
 OvsdbDBObject (OvsdbClientIdl *idl, bool init_stale_entry_cleanup)
 
 OvsdbDBObject (OvsdbClientIdl *idl, DBTable *tbl, bool init_stale_entry_cleanup)
 
virtual ~OvsdbDBObject ()
 
virtual void OvsdbRegisterDBTable (DBTable *tbl)
 
void OvsdbStartResyncWalk ()
 
void NotifyAddOvsdb (OvsdbDBEntry *key, struct ovsdb_idl_row *row)
 
void NotifyDeleteOvsdb (OvsdbDBEntry *key, struct ovsdb_idl_row *row)
 
virtual OvsdbDBEntryAllocOvsEntry (struct ovsdb_idl_row *row)
 
bool DBWalkNotify (DBTablePartBase *partition, DBEntryBase *entry)
 
void DBWalkDone (DBTableBase *partition)
 
void DeleteTable (void)
 
OvsdbClientIdlclient_idl ()
 
- Public Member Functions inherited from KSyncDBObject
 KSyncDBObject (const std::string &name)
 
 KSyncDBObject (const std::string &name, int max_index)
 
 KSyncDBObject (const std::string &name, DBTableBase *table)
 
 KSyncDBObject (const std::string &name, DBTableBase *table, int max_index)
 
virtual ~KSyncDBObject ()
 
void RegisterDb (DBTableBase *table)
 
void UnregisterDb (DBTableBase *table)
 
void Notify (DBTablePartBase *partition, DBEntryBase *entry)
 
DBTableBaseGetDBTable ()
 
DBTableBase::ListenerId GetListenerId (DBTableBase *table)
 
void set_test_id (DBTableBase::ListenerId id)
 
DBTableBase::ListenerId id () const
 
- Public Member Functions inherited from KSyncObject
 KSyncObject (const std::string &name)
 
 KSyncObject (const std::string &name, int max_index)
 
virtual ~KSyncObject ()
 
void InitStaleEntryCleanup (boost::asio::io_context &ios, uint32_t cleanup_time, uint32_t cleanup_intvl, uint16_t entries_per_intvl)
 
void NotifyEvent (KSyncEntry *entry, KSyncEntry::KSyncEvent event)
 
void SafeNotifyEvent (KSyncEntry *entry, KSyncEntry::KSyncEvent event)
 
virtual void NetlinkAck (KSyncEntry *entry, KSyncEntry::KSyncEvent event)
 
void BackRefAdd (KSyncEntry *key, KSyncEntry *reference)
 
void BackRefDel (KSyncEntry *key)
 
void BackRefReEval (KSyncEntry *key)
 
KSyncEntryCreate (const KSyncEntry *key)
 
KSyncEntryCreate (const KSyncEntry *key, bool skip_lookup)
 
KSyncEntryCreateStale (const KSyncEntry *key)
 
void Change (KSyncEntry *entry)
 
void Delete (KSyncEntry *entry)
 
KSyncEntryFind (const KSyncEntry *key)
 
KSyncEntryNext (const KSyncEntry *entry) const
 
KSyncEntryGetReference (const KSyncEntry *key)
 
virtual void Free (KSyncEntry *entry)
 
bool IsEmpty (void)
 
virtual bool DoEventTrace (void)
 
virtual void PreFree (KSyncEntry *entry)
 
std::size_t Size ()
 
void set_delete_scheduled ()
 
bool delete_scheduled ()
 
virtual SandeshTraceBufferPtr GetKSyncTraceBuf ()
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (HaStaleL2RouteTable)
 

Private Attributes

LifetimeRef< HaStaleL2RouteTabletable_delete_ref_
 
HaStaleDevVnEntrydev_vn_
 
ConnectionStateEntrystate_
 
Ip4Address dev_ip_
 
uint32_t vxlan_id_
 
VrfEntryRef vrf_
 
std::string vn_name_
 

Friends

class HaStaleL2RouteEntry
 

Additional Inherited Members

- Public Types inherited from KSyncDBObject
enum  DBFilterResp {
  DBFilterAccept, DBFilterIgnore, DBFilterDelete, DBFilterDelAdd,
  DBFilterMax
}
 
- Public Types inherited from KSyncObject
typedef
boost::intrusive::member_hook
< KSyncEntry,
boost::intrusive::set_member_hook
<>,&KSyncEntry::node_
KSyncObjectNode
 
typedef boost::intrusive::set
< KSyncEntry, KSyncObjectNode
Tree
 
typedef
boost::intrusive::member_hook
< KSyncFwdReference,
boost::intrusive::set_member_hook
<>,&KSyncFwdReference::node_
KSyncFwdRefNode
 
typedef boost::intrusive::set
< KSyncFwdReference,
KSyncFwdRefNode
FwdRefTree
 
typedef
boost::intrusive::member_hook
< KSyncBackReference,
boost::intrusive::set_member_hook
<>,&KSyncBackReference::node_
KSyncBackRefNode
 
typedef boost::intrusive::set
< KSyncBackReference,
KSyncBackRefNode
BackRefTree
 
- Static Public Member Functions inherited from KSyncObject
static void Shutdown ()
 
- Static Public Attributes inherited from OVSDB::OvsdbDBObject
static const uint32_t StaleEntryCleanupTimer = 300000
 
static const uint32_t StaleEntryYeildTimer = 100
 
static const uint16_t StaleEntryDeletePerIteration = 32
 
- Protected Member Functions inherited from OVSDB::OvsdbDBObject
DBFilterResp DBEntryFilter (const DBEntry *entry, const KSyncDBEntry *ksync)
 
virtual void DeleteTableDone (void)
 
- Protected Member Functions inherited from KSyncObject
KSyncEntryCreateImpl (const KSyncEntry *key)
 
void ClearStale (KSyncEntry *entry)
 
void ChangeKey (KSyncEntry *entry, uint32_t arg)
 
virtual void UpdateKey (KSyncEntry *entry, uint32_t arg)
 
virtual uint32_t GetKey (KSyncEntry *entry)
 
- Protected Attributes inherited from OVSDB::OvsdbDBObject
OvsdbClientIdlPtr client_idl_
 
- Protected Attributes inherited from KSyncObject
tbb::recursive_mutex lock_
 

Detailed Description

Definition at line 20 of file ha_stale_l2_route.h.

Constructor & Destructor Documentation

HaStaleL2RouteTable::HaStaleL2RouteTable ( HaStaleDevVnEntry dev_vn,
AgentRouteTable table 
)

Definition at line 191 of file ha_stale_l2_route.cc.

Here is the call graph for this function:

HaStaleL2RouteTable::~HaStaleL2RouteTable ( )
virtual

Definition at line 200 of file ha_stale_l2_route.cc.

Member Function Documentation

Agent * HaStaleL2RouteTable::agent ( ) const
virtual

Reimplemented from OVSDB::OvsdbDBObject.

Definition at line 259 of file ha_stale_l2_route.cc.

Here is the call graph for this function:

KSyncEntry * HaStaleL2RouteTable::Alloc ( const KSyncEntry key,
uint32_t  index 
)
virtual

Implements KSyncObject.

Definition at line 205 of file ha_stale_l2_route.cc.

KSyncEntry * HaStaleL2RouteTable::DBToKSyncEntry ( const DBEntry db_entry)
virtual

Implements KSyncDBObject.

Definition at line 212 of file ha_stale_l2_route.cc.

Here is the call graph for this function:

Ip4Address HaStaleL2RouteTable::dev_ip ( ) const

Definition at line 280 of file ha_stale_l2_route.cc.

OVSDB::HaStaleL2RouteTable::DISALLOW_COPY_AND_ASSIGN ( HaStaleL2RouteTable  )
private
void HaStaleL2RouteTable::EmptyTable ( void  )
virtual

Reimplemented from OVSDB::OvsdbDBObject.

Definition at line 268 of file ha_stale_l2_route.cc.

Here is the call graph for this function:

void HaStaleL2RouteTable::ManagedDelete ( )

Definition at line 263 of file ha_stale_l2_route.cc.

KSyncDBObject::DBFilterResp HaStaleL2RouteTable::OvsdbDBEntryFilter ( const DBEntry entry,
const OvsdbDBEntry ovsdb_entry 
)
virtual

Reimplemented from OVSDB::OvsdbDBObject.

Definition at line 220 of file ha_stale_l2_route.cc.

Here is the call graph for this function:

void HaStaleL2RouteTable::UpdateParams ( HaStaleDevVnEntry dev_vn)

Definition at line 299 of file ha_stale_l2_route.cc.

Here is the call graph for this function:

const std::string & HaStaleL2RouteTable::vn_name ( ) const

Definition at line 288 of file ha_stale_l2_route.cc.

const std::string & HaStaleL2RouteTable::vrf_name ( ) const

Definition at line 292 of file ha_stale_l2_route.cc.

Here is the call graph for this function:

uint32_t HaStaleL2RouteTable::vxlan_id ( ) const

Definition at line 284 of file ha_stale_l2_route.cc.

Friends And Related Function Documentation

friend class HaStaleL2RouteEntry
friend

Definition at line 43 of file ha_stale_l2_route.h.

Member Data Documentation

Ip4Address OVSDB::HaStaleL2RouteTable::dev_ip_
private

Definition at line 49 of file ha_stale_l2_route.h.

HaStaleDevVnEntry* OVSDB::HaStaleL2RouteTable::dev_vn_
private

Definition at line 47 of file ha_stale_l2_route.h.

ConnectionStateEntry* OVSDB::HaStaleL2RouteTable::state_
private

Definition at line 48 of file ha_stale_l2_route.h.

LifetimeRef<HaStaleL2RouteTable> OVSDB::HaStaleL2RouteTable::table_delete_ref_
private

Definition at line 45 of file ha_stale_l2_route.h.

std::string OVSDB::HaStaleL2RouteTable::vn_name_
private

Definition at line 54 of file ha_stale_l2_route.h.

VrfEntryRef OVSDB::HaStaleL2RouteTable::vrf_
private

Definition at line 53 of file ha_stale_l2_route.h.

uint32_t OVSDB::HaStaleL2RouteTable::vxlan_id_
private

Definition at line 50 of file ha_stale_l2_route.h.


The documentation for this class was generated from the following files: