OpenSDN source code
|
#include <vrf_ovsdb.h>
Public Types | |
enum | Trace { ADD_REQ, DEL_REQ, ADD_ACK, DEL_ACK } |
![]() | |
typedef std::list< DBEntry * > | DupEntryList |
![]() | |
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 |
KSyncEntry * | UnresolvedReference () |
void | TriggerAck (UnicastMacRemoteTable *table) |
UnicastMacRemoteTable * | route_table () |
const std::string & | logical_switch_name () |
![]() | |
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 () |
OvsdbDBObject * | table () |
KSyncObject * | GetObject () const |
virtual void | Ack (bool success) |
void | TriggerDeleteAdd () |
![]() | |
KSyncDBEntry () | |
KSyncDBEntry (uint32_t index) | |
virtual | ~KSyncDBEntry () |
void | SetDBEntry (DBEntry *db_entry) |
DBEntry * | GetDBEntry () |
![]() | |
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) |
![]() | |
virtual | ~DBState () |
![]() | |
virtual void | TxnDoneNoMessage () |
KSyncEntry::KSyncEvent | ack_event () |
Protected Member Functions | |
virtual bool | IsNoTxnEntry () |
![]() | |
virtual bool | UseBulkTxn () |
![]() | |
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_ |
UnicastMacRemoteTable * | route_table_ |
AgentRouteTable * | oper_route_table_ |
Friends | |
class | VrfOvsdbObject |
Additional Inherited Members | |
![]() | |
static std::string | VrouterErrorToString (uint32_t error) |
![]() | |
static const size_t | kInvalidIndex = 0xFFFFFFFF |
static const int | kDefaultMsgSize = 512 |
![]() | |
OvsdbDBObject * | table_ |
struct ovsdb_idl_row * | ovs_entry_ |
![]() | |
KSyncEntry::KSyncEvent | ack_event_ |
Definition at line 35 of file vrf_ovsdb.h.
Enumerator | |
---|---|
ADD_REQ | |
DEL_REQ | |
ADD_ACK | |
DEL_ACK |
Definition at line 37 of file vrf_ovsdb.h.
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.
|
virtual |
Reimplemented from OVSDB::OvsdbDBEntry.
Definition at line 38 of file vrf_ovsdb.cc.
|
virtual |
Reimplemented from OVSDB::OvsdbDBEntry.
Definition at line 58 of file vrf_ovsdb.cc.
|
virtual |
Reimplemented from OVSDB::OvsdbDBEntry.
Definition at line 62 of file vrf_ovsdb.cc.
|
private |
|
virtual |
Implements KSyncEntry.
Definition at line 89 of file vrf_ovsdb.cc.
|
inlineprotectedvirtual |
Reimplemented from OVSDB::OvsdbDBEntry.
Definition at line 61 of file vrf_ovsdb.h.
|
inline |
Definition at line 58 of file vrf_ovsdb.h.
|
inline |
Definition at line 57 of file vrf_ovsdb.h.
|
private |
|
virtual |
Implements KSyncDBEntry.
Definition at line 78 of file vrf_ovsdb.cc.
|
inlinevirtual |
Implements KSyncEntry.
Definition at line 52 of file vrf_ovsdb.h.
void VrfOvsdbEntry::TriggerAck | ( | UnicastMacRemoteTable * | table | ) |
|
virtual |
Implements KSyncEntry.
Definition at line 95 of file vrf_ovsdb.cc.
|
friend |
Definition at line 64 of file vrf_ovsdb.h.
|
private |
Definition at line 66 of file vrf_ovsdb.h.
|
private |
Definition at line 68 of file vrf_ovsdb.h.
|
private |
Definition at line 67 of file vrf_ovsdb.h.