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

#include <vrf_ovsdb.h>

Inheritance diagram for OVSDB::VrfOvsdbEntry:
Collaboration diagram for OVSDB::VrfOvsdbEntry:

Public Types

enum  Trace { ADD_REQ, DEL_REQ, ADD_ACK, DEL_ACK }
 
- Public Types inherited from KSyncDBEntry
typedef std::list< DBEntry * > DupEntryList
 
- Public Types inherited from KSyncEntry
enum  KSyncState {
  INIT, TEMP, ADD_DEFER, CHANGE_DEFER,
  IN_SYNC, SYNC_WAIT, NEED_SYNC, DEL_DEFER_SYNC,
  DEL_DEFER_REF, DEL_DEFER_DEL_ACK, DEL_ACK_WAIT, RENEW_WAIT,
  FREE_WAIT
}
 
enum  KSyncEvent {
  ADD_CHANGE_REQ, ADD_ACK, CHANGE_ACK, DEL_REQ,
  DEL_ADD_REQ, DEL_ACK, RE_EVAL, INT_PTR_REL,
  INVALID
}
 
typedef boost::intrusive_ptr
< KSyncEntry
KSyncEntryPtr
 

Public Member Functions

 VrfOvsdbEntry (OvsdbDBObject *table, const std::string &logical_switch)
 
 ~VrfOvsdbEntry ()
 
bool Add ()
 
bool Change ()
 
bool Delete ()
 
bool Sync (DBEntry *)
 
bool IsLess (const KSyncEntry &) const
 
std::string ToString () const
 
KSyncEntryUnresolvedReference ()
 
void TriggerAck (UnicastMacRemoteTable *table)
 
UnicastMacRemoteTableroute_table ()
 
const std::string & logical_switch_name ()
 
- Public Member Functions inherited from OVSDB::OvsdbDBEntry
 OvsdbDBEntry (OvsdbDBObject *table)
 
 OvsdbDBEntry (OvsdbDBObject *table, struct ovsdb_idl_row *ovs_entry)
 
virtual ~OvsdbDBEntry ()
 
virtual void PreAddChange ()
 
virtual void PostDelete ()
 
virtual void AddMsg (struct ovsdb_idl_txn *)
 
virtual void ChangeMsg (struct ovsdb_idl_txn *)
 
virtual void DeleteMsg (struct ovsdb_idl_txn *)
 
virtual void OvsdbChange ()
 
virtual void StaleTimerExpired ()
 
bool AllowDeleteStateComp ()
 
virtual void NotifyAdd (struct ovsdb_idl_row *)
 
virtual void NotifyDelete (struct ovsdb_idl_row *)
 
virtual bool IsDataResolved ()
 
bool IsDelAckWaiting ()
 
bool IsAddChangeAckWaiting ()
 
struct ovsdb_idl_row * ovs_entry ()
 
OvsdbDBObjecttable ()
 
KSyncObjectGetObject () const
 
virtual void Ack (bool success)
 
void TriggerDeleteAdd ()
 
- Public Member Functions inherited from KSyncDBEntry
 KSyncDBEntry ()
 
 KSyncDBEntry (uint32_t index)
 
virtual ~KSyncDBEntry ()
 
void SetDBEntry (DBEntry *db_entry)
 
DBEntryGetDBEntry ()
 
- Public Member Functions inherited from KSyncEntry
std::string StateString () const
 
std::string AckOperationString (KSyncEvent ack_event) const
 
std::string EventString (KSyncEvent event) const
 
 KSyncEntry ()
 
 KSyncEntry (uint32_t index)
 
virtual ~KSyncEntry ()
 
void Reset ()
 
void Reset (uint32_t index)
 
bool operator< (const KSyncEntry &rhs) const
 
virtual bool ShouldReEvalBackReference () const
 
bool IsResolved ()
 
virtual void Response ()
 
virtual void ErrorHandler (int err, uint32_t seqno, KSyncEvent event) const
 
virtual std::string VrouterError (uint32_t error) const
 
virtual bool pre_alloc_rx_buffer () const
 
virtual uint32_t GetTableIndex () const
 
size_t GetIndex () const
 
KSyncState GetState () const
 
bool del_add_pending () const
 
uint32_t GetRefCount () const
 
bool Seen () const
 
bool stale () const
 
void SetSeen ()
 
bool IsDeleted ()
 
bool IsActive ()
 
void set_del_add_pending (bool pending)
 
void RecordTransition (KSyncState from, KSyncState to, KSyncEvent event)
 
- Public Member Functions inherited from DBState
virtual ~DBState ()
 
- Public Member Functions inherited from OVSDB::OvsdbEntryBase
virtual void TxnDoneNoMessage ()
 
KSyncEntry::KSyncEvent ack_event ()
 

Protected Member Functions

virtual bool IsNoTxnEntry ()
 
- Protected Member Functions inherited from OVSDB::OvsdbDBEntry
virtual bool UseBulkTxn ()
 
- Protected Member Functions inherited from KSyncEntry
void SetIndex (size_t index)
 
void SetState (KSyncState state)
 

Private Member Functions

void SendTrace (Trace event) const
 
 DISALLOW_COPY_AND_ASSIGN (VrfOvsdbEntry)
 

Private Attributes

std::string logical_switch_name_
 
UnicastMacRemoteTableroute_table_
 
AgentRouteTableoper_route_table_
 

Friends

class VrfOvsdbObject
 

Additional Inherited Members

- Static Public Member Functions inherited from KSyncEntry
static std::string VrouterErrorToString (uint32_t error)
 
- Static Public Attributes inherited from KSyncEntry
static const size_t kInvalidIndex = 0xFFFFFFFF
 
static const int kDefaultMsgSize = 512
 
- Protected Attributes inherited from OVSDB::OvsdbDBEntry
OvsdbDBObjecttable_
 
struct ovsdb_idl_row * ovs_entry_
 
- Protected Attributes inherited from OVSDB::OvsdbEntryBase
KSyncEntry::KSyncEvent ack_event_
 

Detailed Description

Definition at line 35 of file vrf_ovsdb.h.

Member Enumeration Documentation

Enumerator
ADD_REQ 
DEL_REQ 
ADD_ACK 
DEL_ACK 

Definition at line 37 of file vrf_ovsdb.h.

Constructor & Destructor Documentation

VrfOvsdbEntry::VrfOvsdbEntry ( OvsdbDBObject table,
const std::string &  logical_switch 
)

Definition at line 28 of file vrf_ovsdb.cc.

VrfOvsdbEntry::~VrfOvsdbEntry ( )

Definition at line 34 of file vrf_ovsdb.cc.

Member Function Documentation

bool VrfOvsdbEntry::Add ( )
virtual

Reimplemented from OVSDB::OvsdbDBEntry.

Definition at line 38 of file vrf_ovsdb.cc.

Here is the call graph for this function:

bool VrfOvsdbEntry::Change ( )
virtual

Reimplemented from OVSDB::OvsdbDBEntry.

Definition at line 58 of file vrf_ovsdb.cc.

Here is the call graph for this function:

bool VrfOvsdbEntry::Delete ( )
virtual

Reimplemented from OVSDB::OvsdbDBEntry.

Definition at line 62 of file vrf_ovsdb.cc.

Here is the call graph for this function:

OVSDB::VrfOvsdbEntry::DISALLOW_COPY_AND_ASSIGN ( VrfOvsdbEntry  )
private
bool VrfOvsdbEntry::IsLess ( const KSyncEntry entry) const
virtual

Implements KSyncEntry.

Definition at line 89 of file vrf_ovsdb.cc.

virtual bool OVSDB::VrfOvsdbEntry::IsNoTxnEntry ( )
inlineprotectedvirtual

Reimplemented from OVSDB::OvsdbDBEntry.

Definition at line 61 of file vrf_ovsdb.h.

const std::string& OVSDB::VrfOvsdbEntry::logical_switch_name ( )
inline

Definition at line 58 of file vrf_ovsdb.h.

UnicastMacRemoteTable* OVSDB::VrfOvsdbEntry::route_table ( )
inline

Definition at line 57 of file vrf_ovsdb.h.

void OVSDB::VrfOvsdbEntry::SendTrace ( Trace  event) const
private
bool VrfOvsdbEntry::Sync ( DBEntry db_entry)
virtual

Implements KSyncDBEntry.

Definition at line 78 of file vrf_ovsdb.cc.

Here is the call graph for this function:

std::string OVSDB::VrfOvsdbEntry::ToString ( ) const
inlinevirtual

Implements KSyncEntry.

Definition at line 52 of file vrf_ovsdb.h.

void VrfOvsdbEntry::TriggerAck ( UnicastMacRemoteTable table)

Definition at line 99 of file vrf_ovsdb.cc.

Here is the call graph for this function:

KSyncEntry * VrfOvsdbEntry::UnresolvedReference ( )
virtual

Implements KSyncEntry.

Definition at line 95 of file vrf_ovsdb.cc.

Friends And Related Function Documentation

friend class VrfOvsdbObject
friend

Definition at line 64 of file vrf_ovsdb.h.

Member Data Documentation

std::string OVSDB::VrfOvsdbEntry::logical_switch_name_
private

Definition at line 66 of file vrf_ovsdb.h.

AgentRouteTable* OVSDB::VrfOvsdbEntry::oper_route_table_
private

Definition at line 68 of file vrf_ovsdb.h.

UnicastMacRemoteTable* OVSDB::VrfOvsdbEntry::route_table_
private

Definition at line 67 of file vrf_ovsdb.h.


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