OpenSDN source code
|
#include <logical_switch_ovsdb.h>
Classes | |
class | ProcessDeleteOvsReqTask |
Public Types | |
enum | Trace { ADD_REQ, DEL_REQ, ADD_ACK, DEL_ACK, DUP_TUNNEL_KEY_ADD } |
typedef std::set< struct ovsdb_idl_row * > | OvsdbIdlRowList |
![]() | |
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 | |
LogicalSwitchEntry (OvsdbDBObject *table, const std::string &name) | |
LogicalSwitchEntry (OvsdbDBObject *table, const LogicalSwitchEntry *key) | |
LogicalSwitchEntry (OvsdbDBObject *table, const PhysicalDeviceVn *entry) | |
LogicalSwitchEntry (OvsdbDBObject *table, struct ovsdb_idl_row *entry) | |
virtual | ~LogicalSwitchEntry () |
Ip4Address & | physical_switch_tunnel_ip () |
void | AddMsg (struct ovsdb_idl_txn *) |
void | ChangeMsg (struct ovsdb_idl_txn *) |
void | DeleteMsg (struct ovsdb_idl_txn *) |
virtual void | NotifyDelete (struct ovsdb_idl_row *) |
void | OvsdbChange () |
const std::string & | name () const |
const std::string & | device_name () const |
int64_t | vxlan_id () const |
std::string | tor_service_node () const |
OvsdbResourceVxLanId & | res_vxlan_id () |
bool | IsDeleteOvsInProgress () const |
bool | Sync (DBEntry *) |
bool | IsLess (const KSyncEntry &) const |
std::string | ToString () const |
KSyncEntry * | UnresolvedReference () |
bool | IsLocalMacsRef () const |
void | Ack (bool success) |
void | TxnDoneNoMessage () |
void | DeleteOvs (bool add_change_in_progress) |
virtual void | StaleTimerExpired () |
uint32_t | mcast_local_row_list_size () const |
uint32_t | ucast_local_row_list_size () const |
uint32_t | old_mcast_remote_row_list_size () const |
bool | is_local_mac_ref_set () const |
bool | is_mcast_remote_set () const |
![]() | |
OvsdbDBEntry (OvsdbDBObject *table) | |
OvsdbDBEntry (OvsdbDBObject *table, struct ovsdb_idl_row *ovs_entry) | |
virtual | ~OvsdbDBEntry () |
virtual void | PreAddChange () |
virtual void | PostDelete () |
bool | AllowDeleteStateComp () |
virtual void | NotifyAdd (struct ovsdb_idl_row *) |
virtual bool | Add () |
virtual bool | Change () |
virtual bool | Delete () |
virtual bool | IsDataResolved () |
bool | IsDelAckWaiting () |
bool | IsAddChangeAckWaiting () |
struct ovsdb_idl_row * | ovs_entry () |
OvsdbDBObject * | table () |
KSyncObject * | GetObject () const |
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 () |
![]() | |
KSyncEntry::KSyncEvent | ack_event () |
Private Member Functions | |
void | CancelDeleteOvs () |
void | SendTrace (Trace event) const |
void | DeleteOldMcastRemoteMac () |
void | ReleaseLocatorCreateReference () |
DISALLOW_COPY_AND_ASSIGN (LogicalSwitchEntry) | |
Private Attributes | |
std::string | name_ |
std::string | device_name_ |
KSyncEntryPtr | physical_switch_ |
KSyncEntryPtr | local_mac_ref_ |
KSyncEntryPtr | pl_create_ref_ |
int64_t | vxlan_id_ |
OvsdbIdlRowList | mcast_local_row_list_ |
struct ovsdb_idl_row * | mcast_remote_row_ |
OvsdbIdlRowList | old_mcast_remote_row_list_ |
OvsdbIdlRowList | ucast_local_row_list_ |
bool | delete_ovs_ |
OvsdbResourceVxLanId | res_vxlan_id_ |
ProcessDeleteOvsReqTask * | del_task_ |
std::set< IntrusiveReferrer > | back_ref_set_ |
Friends | |
class | LogicalSwitchTable |
void | intrusive_ptr_add_back_ref (IntrusiveReferrer ref, LogicalSwitchEntry *p) |
void | intrusive_ptr_del_back_ref (IntrusiveReferrer ref, LogicalSwitchEntry *p) |
Additional Inherited Members | |
![]() | |
static std::string | VrouterErrorToString (uint32_t error) |
![]() | |
static const size_t | kInvalidIndex = 0xFFFFFFFF |
static const int | kDefaultMsgSize = 512 |
![]() | |
virtual bool | IsNoTxnEntry () |
virtual bool | UseBulkTxn () |
![]() | |
void | SetIndex (size_t index) |
void | SetState (KSyncState state) |
![]() | |
OvsdbDBObject * | table_ |
struct ovsdb_idl_row * | ovs_entry_ |
![]() | |
KSyncEntry::KSyncEvent | ack_event_ |
Definition at line 65 of file logical_switch_ovsdb.h.
typedef std::set<struct ovsdb_idl_row *> OVSDB::LogicalSwitchEntry::OvsdbIdlRowList |
Definition at line 67 of file logical_switch_ovsdb.h.
Enumerator | |
---|---|
ADD_REQ | |
DEL_REQ | |
ADD_ACK | |
DEL_ACK | |
DUP_TUNNEL_KEY_ADD |
Definition at line 68 of file logical_switch_ovsdb.h.
LogicalSwitchEntry::LogicalSwitchEntry | ( | OvsdbDBObject * | table, |
const std::string & | name | ||
) |
Definition at line 37 of file logical_switch_ovsdb.cc.
LogicalSwitchEntry::LogicalSwitchEntry | ( | OvsdbDBObject * | table, |
const LogicalSwitchEntry * | key | ||
) |
Definition at line 53 of file logical_switch_ovsdb.cc.
LogicalSwitchEntry::LogicalSwitchEntry | ( | OvsdbDBObject * | table, |
const PhysicalDeviceVn * | entry | ||
) |
LogicalSwitchEntry::LogicalSwitchEntry | ( | OvsdbDBObject * | table, |
struct ovsdb_idl_row * | entry | ||
) |
Definition at line 62 of file logical_switch_ovsdb.cc.
|
virtual |
Definition at line 70 of file logical_switch_ovsdb.cc.
|
virtual |
Reimplemented from OVSDB::OvsdbDBEntry.
Definition at line 262 of file logical_switch_ovsdb.cc.
|
virtual |
Reimplemented from OVSDB::OvsdbDBEntry.
Definition at line 80 of file logical_switch_ovsdb.cc.
|
private |
|
virtual |
Reimplemented from OVSDB::OvsdbDBEntry.
Definition at line 120 of file logical_switch_ovsdb.cc.
|
virtual |
Reimplemented from OVSDB::OvsdbDBEntry.
Definition at line 124 of file logical_switch_ovsdb.cc.
|
private |
void LogicalSwitchEntry::DeleteOvs | ( | bool | add_change_in_progress | ) |
const std::string & LogicalSwitchEntry::device_name | ( | ) | const |
Definition at line 159 of file logical_switch_ovsdb.cc.
|
private |
|
inline |
Definition at line 146 of file logical_switch_ovsdb.h.
|
inline |
Definition at line 149 of file logical_switch_ovsdb.h.
bool LogicalSwitchEntry::IsDeleteOvsInProgress | ( | ) | const |
Definition at line 175 of file logical_switch_ovsdb.cc.
|
virtual |
Implements KSyncEntry.
Definition at line 194 of file logical_switch_ovsdb.cc.
bool LogicalSwitchEntry::IsLocalMacsRef | ( | ) | const |
Definition at line 258 of file logical_switch_ovsdb.cc.
|
inline |
Definition at line 137 of file logical_switch_ovsdb.h.
const std::string & LogicalSwitchEntry::name | ( | ) | const |
Definition at line 155 of file logical_switch_ovsdb.cc.
|
virtual |
Reimplemented from OVSDB::OvsdbDBEntry.
Definition at line 434 of file logical_switch_ovsdb.cc.
|
inline |
Definition at line 143 of file logical_switch_ovsdb.h.
|
virtual |
Reimplemented from OVSDB::OvsdbDBEntry.
Definition at line 150 of file logical_switch_ovsdb.cc.
Ip4Address & LogicalSwitchEntry::physical_switch_tunnel_ip | ( | ) |
|
private |
OvsdbResourceVxLanId & LogicalSwitchEntry::res_vxlan_id | ( | ) |
Definition at line 171 of file logical_switch_ovsdb.cc.
|
private |
Definition at line 388 of file logical_switch_ovsdb.cc.
|
virtual |
Reimplemented from OVSDB::OvsdbDBEntry.
Definition at line 457 of file logical_switch_ovsdb.cc.
|
virtual |
Implements KSyncDBEntry.
Definition at line 179 of file logical_switch_ovsdb.cc.
std::string LogicalSwitchEntry::tor_service_node | ( | ) | const |
|
inlinevirtual |
Implements KSyncEntry.
Definition at line 101 of file logical_switch_ovsdb.h.
|
virtual |
Reimplemented from OVSDB::OvsdbEntryBase.
Definition at line 285 of file logical_switch_ovsdb.cc.
|
inline |
Definition at line 140 of file logical_switch_ovsdb.h.
|
virtual |
Implements KSyncEntry.
Definition at line 200 of file logical_switch_ovsdb.cc.
int64_t LogicalSwitchEntry::vxlan_id | ( | ) | const |
Definition at line 163 of file logical_switch_ovsdb.cc.
|
friend |
Definition at line 28 of file logical_switch_ovsdb.cc.
|
friend |
Definition at line 32 of file logical_switch_ovsdb.cc.
|
friend |
Definition at line 180 of file logical_switch_ovsdb.h.
|
private |
Definition at line 215 of file logical_switch_ovsdb.h.
|
private |
Definition at line 211 of file logical_switch_ovsdb.h.
|
private |
Definition at line 209 of file logical_switch_ovsdb.h.
|
private |
Definition at line 190 of file logical_switch_ovsdb.h.
|
private |
Definition at line 195 of file logical_switch_ovsdb.h.
|
private |
Definition at line 201 of file logical_switch_ovsdb.h.
|
private |
Definition at line 202 of file logical_switch_ovsdb.h.
|
private |
Definition at line 189 of file logical_switch_ovsdb.h.
|
private |
Definition at line 203 of file logical_switch_ovsdb.h.
|
private |
Definition at line 191 of file logical_switch_ovsdb.h.
|
private |
Definition at line 198 of file logical_switch_ovsdb.h.
|
private |
Definition at line 210 of file logical_switch_ovsdb.h.
|
private |
Definition at line 204 of file logical_switch_ovsdb.h.
|
private |
Definition at line 200 of file logical_switch_ovsdb.h.