OpenSDN source code
|
#include <ovsdb_client_idl.h>
Classes | |
struct | OvsdbMsg |
struct | TxnStats |
Public Types | |
enum | OvsdbSessionState { OvsdbSessionActive = 0, OvsdbSessionRcvWait, OvsdbSessionEchoWait } |
enum | Op { OVSDB_DEL = 0, OVSDB_ADD, OVSDB_INVALID_OP } |
enum | EntryType { OVSDB_PHYSICAL_SWITCH = 0, OVSDB_LOGICAL_SWITCH, OVSDB_PHYSICAL_PORT, OVSDB_PHYSICAL_LOCATOR, OVSDB_UCAST_MAC_LOCAL, OVSDB_UCAST_MAC_REMOTE, OVSDB_PHYSICAL_LOCATOR_SET, OVSDB_MCAST_MAC_LOCAL, OVSDB_MCAST_MAC_REMOTE, OVSDB_TYPE_COUNT } |
typedef boost::function< void(OvsdbClientIdl::Op, struct ovsdb_idl_row *)> | NotifyCB |
typedef std::map< struct ovsdb_idl_txn *, OvsdbEntryList > | PendingTxnMap |
typedef std::queue< struct jsonrpc_msg * > | ThrottledTxnMsgs |
Static Public Attributes | |
static const std::size_t | OVSDBMaxInFlightPendingTxn = 25 |
static const std::size_t | OVSDBEntriesInBulkTxn = 4 |
Private Member Functions | |
void | ConnectOperDB () |
DISALLOW_COPY_AND_ASSIGN (OvsdbClientIdl) | |
Friends | |
void | ovsdb_wrapper_idl_callback (void *, int, struct ovsdb_idl_row *) |
void | ovsdb_wrapper_idl_txn_ack (void *, struct ovsdb_idl_txn *) |
void | intrusive_ptr_add_ref (OvsdbClientIdl *p) |
void | intrusive_ptr_release (OvsdbClientIdl *p) |
Definition at line 58 of file ovsdb_client_idl.h.
typedef boost::function<void(OvsdbClientIdl::Op, struct ovsdb_idl_row *)> OVSDB::OvsdbClientIdl::NotifyCB |
Definition at line 109 of file ovsdb_client_idl.h.
typedef std::map<struct ovsdb_idl_txn *, OvsdbEntryList> OVSDB::OvsdbClientIdl::PendingTxnMap |
Definition at line 110 of file ovsdb_client_idl.h.
typedef std::queue<struct jsonrpc_msg *> OVSDB::OvsdbClientIdl::ThrottledTxnMsgs |
Definition at line 111 of file ovsdb_client_idl.h.
Definition at line 83 of file ovsdb_client_idl.h.
Enumerator | |
---|---|
OVSDB_DEL | |
OVSDB_ADD | |
OVSDB_INVALID_OP |
Definition at line 77 of file ovsdb_client_idl.h.
Enumerator | |
---|---|
OvsdbSessionActive | |
OvsdbSessionRcvWait | |
OvsdbSessionEchoWait |
Definition at line 68 of file ovsdb_client_idl.h.
OvsdbClientIdl::OvsdbClientIdl | ( | OvsdbClientSession * | session, |
Agent * | agent, | ||
OvsPeerManager * | manager | ||
) |
|
virtual |
|
inline |
Definition at line 158 of file ovsdb_client_idl.h.
bool OvsdbClientIdl::ConcurrencyCheck | ( | ) | const |
ConnectionStateTable * OvsdbClientIdl::connection_table | ( | ) |
|
private |
struct ovsdb_idl_txn * OvsdbClientIdl::CreateBulkTxn | ( | OvsdbEntryBase * | entry, |
KSyncEntry::KSyncEvent | ack_event = KSyncEntry::ADD_ACK |
||
) |
struct ovsdb_idl_txn * OvsdbClientIdl::CreateTxn | ( | OvsdbEntryBase * | entry, |
KSyncEntry::KSyncEvent | ack_event = KSyncEntry::ADD_ACK |
||
) |
|
inline |
Definition at line 157 of file ovsdb_client_idl.h.
void OvsdbClientIdl::DeleteTxn | ( | struct ovsdb_idl_txn * | txn | ) |
|
private |
bool OvsdbClientIdl::EncodeSendTxn | ( | struct ovsdb_idl_txn * | txn, |
OvsdbEntryBase * | skip_entry | ||
) |
|
inline |
Definition at line 177 of file ovsdb_client_idl.h.
bool OvsdbClientIdl::IsKeepAliveTimerActive | ( | ) |
bool OvsdbClientIdl::IsMonitorInProcess | ( | ) |
Definition at line 487 of file ovsdb_client_idl.cc.
bool OvsdbClientIdl::KeepAliveTimerCb | ( | ) |
KSyncObjectManager * OvsdbClientIdl::ksync_obj_manager | ( | ) |
LogicalSwitchTable * OvsdbClientIdl::logical_switch_table | ( | ) |
Definition at line 447 of file ovsdb_client_idl.cc.
void OVSDB::OvsdbClientIdl::MessageProcess | ( | const u_int8_t * | buf, |
std::size_t | len | ||
) |
void OvsdbClientIdl::MessageProcess | ( | struct jsonrpc_msg * | msg | ) |
Definition at line 412 of file ovsdb_client_idl.cc.
MulticastMacLocalOvsdb * OvsdbClientIdl::multicast_mac_local_ovsdb | ( | ) |
Definition at line 467 of file ovsdb_client_idl.cc.
void OvsdbClientIdl::NotifyDelAdd | ( | struct ovsdb_idl_row * | row | ) |
void OvsdbClientIdl::OnEstablish | ( | ) |
uint64_t OvsdbClientIdl::pending_send_msg_count | ( | ) | const |
Definition at line 583 of file ovsdb_client_idl.cc.
uint64_t OvsdbClientIdl::pending_txn_count | ( | ) | const |
Definition at line 579 of file ovsdb_client_idl.cc.
PhysicalLocatorTable * OvsdbClientIdl::physical_locator_table | ( | ) |
Definition at line 455 of file ovsdb_client_idl.cc.
PhysicalPortTable * OvsdbClientIdl::physical_port_table | ( | ) |
Definition at line 451 of file ovsdb_client_idl.cc.
PhysicalSwitchTable * OvsdbClientIdl::physical_switch_table | ( | ) |
Definition at line 443 of file ovsdb_client_idl.cc.
bool OvsdbClientIdl::ProcessMessage | ( | OvsdbMsg * | msg | ) |
|
inline |
Definition at line 178 of file ovsdb_client_idl.h.
Definition at line 140 of file ovsdb_client_idl.h.
Ip4Address OvsdbClientIdl::remote_ip | ( | ) | const |
uint16_t OvsdbClientIdl::remote_port | ( | ) | const |
OvsPeer * OvsdbClientIdl::route_peer | ( | ) |
Definition at line 435 of file ovsdb_client_idl.cc.
const OvsdbClientIdl::TxnStats & OvsdbClientIdl::stats | ( | ) | const |
Definition at line 575 of file ovsdb_client_idl.cc.
void OvsdbClientIdl::TriggerDeletion | ( | ) |
Ip4Address OvsdbClientIdl::tsn_ip | ( | ) |
void OvsdbClientIdl::TxnScheduleJsonRpc | ( | struct jsonrpc_msg * | msg | ) |
UnicastMacLocalOvsdb * OvsdbClientIdl::unicast_mac_local_ovsdb | ( | ) |
Definition at line 463 of file ovsdb_client_idl.cc.
|
inline |
Definition at line 141 of file ovsdb_client_idl.h.
VlanPortBindingTable * OvsdbClientIdl::vlan_port_table | ( | ) |
Definition at line 459 of file ovsdb_client_idl.cc.
VMInterfaceKSyncObject * OvsdbClientIdl::vm_interface_table | ( | ) |
Definition at line 439 of file ovsdb_client_idl.cc.
VnOvsdbObject * OvsdbClientIdl::vn_ovsdb | ( | ) |
Definition at line 475 of file ovsdb_client_idl.cc.
VrfOvsdbObject * OvsdbClientIdl::vrf_ovsdb | ( | ) |
Definition at line 471 of file ovsdb_client_idl.cc.
OvsdbResourceVxLanIdTable * OvsdbClientIdl::vxlan_table | ( | ) |
Definition at line 479 of file ovsdb_client_idl.cc.
|
friend |
Definition at line 102 of file ovsdb_client_idl.cc.
|
friend |
Definition at line 107 of file ovsdb_client_idl.cc.
|
friend |
Definition at line 58 of file ovsdb_client_idl.cc.
|
friend |
Definition at line 68 of file ovsdb_client_idl.cc.
|
private |
Definition at line 199 of file ovsdb_client_idl.h.
|
private |
Definition at line 220 of file ovsdb_client_idl.h.
|
private |
Definition at line 218 of file ovsdb_client_idl.h.
|
private |
Definition at line 200 of file ovsdb_client_idl.h.
|
private |
Definition at line 209 of file ovsdb_client_idl.h.
|
private |
Definition at line 203 of file ovsdb_client_idl.h.
|
private |
Definition at line 196 of file ovsdb_client_idl.h.
|
private |
Definition at line 210 of file ovsdb_client_idl.h.
|
private |
Definition at line 229 of file ovsdb_client_idl.h.
|
private |
Definition at line 208 of file ovsdb_client_idl.h.
|
private |
Definition at line 215 of file ovsdb_client_idl.h.
|
private |
Definition at line 234 of file ovsdb_client_idl.h.
|
static |
Definition at line 75 of file ovsdb_client_idl.h.
|
static |
Definition at line 74 of file ovsdb_client_idl.h.
|
private |
Definition at line 202 of file ovsdb_client_idl.h.
|
private |
Definition at line 201 of file ovsdb_client_idl.h.
|
private |
Definition at line 231 of file ovsdb_client_idl.h.
|
private |
Definition at line 230 of file ovsdb_client_idl.h.
|
private |
Definition at line 228 of file ovsdb_client_idl.h.
Definition at line 207 of file ovsdb_client_idl.h.
|
private |
Definition at line 225 of file ovsdb_client_idl.h.
|
private |
Definition at line 226 of file ovsdb_client_idl.h.
|
private |
Definition at line 198 of file ovsdb_client_idl.h.
|
private |
Definition at line 223 of file ovsdb_client_idl.h.
|
private |
Definition at line 233 of file ovsdb_client_idl.h.
|
private |
Definition at line 232 of file ovsdb_client_idl.h.
|
private |
Definition at line 227 of file ovsdb_client_idl.h.
|
private |
Definition at line 236 of file ovsdb_client_idl.h.
|
private |
Definition at line 235 of file ovsdb_client_idl.h.
|
private |
Definition at line 197 of file ovsdb_client_idl.h.
|
private |
Definition at line 237 of file ovsdb_client_idl.h.