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

#include <vlan_port_binding_ovsdb.h>

Inheritance diagram for OVSDB::VlanPortBindingEntry:
Collaboration diagram for OVSDB::VlanPortBindingEntry:

Public Member Functions

 VlanPortBindingEntry (VlanPortBindingTable *table, const std::string &physical_device, const std::string &physical_port, uint16_t vlan_tag, const std::string &logical_switch)
 
 VlanPortBindingEntry (VlanPortBindingTable *table, const VlanPortBindingEntry *key)
 
 VlanPortBindingEntry (VlanPortBindingTable *table, const VlanLogicalInterface *entry)
 
void PreAddChange ()
 
void PostDelete ()
 
void AddMsg (struct ovsdb_idl_txn *)
 
void ChangeMsg (struct ovsdb_idl_txn *)
 
void DeleteMsg (struct ovsdb_idl_txn *)
 
bool Sync (DBEntry *)
 
bool IsLess (const KSyncEntry &) const
 
std::string ToString () const
 
KSyncEntryUnresolvedReference ()
 
const std::string & logical_switch_name () const
 
const std::string & physical_port_name () const
 
const std::string & physical_device_name () const
 
uint16_t vlan () const
 
- Public Member Functions inherited from OVSDB::OvsdbDBEntry
 OvsdbDBEntry (OvsdbDBObject *table)
 
 OvsdbDBEntry (OvsdbDBObject *table, struct ovsdb_idl_row *ovs_entry)
 
virtual ~OvsdbDBEntry ()
 
virtual void OvsdbChange ()
 
virtual void StaleTimerExpired ()
 
bool AllowDeleteStateComp ()
 
virtual void NotifyAdd (struct ovsdb_idl_row *)
 
virtual void NotifyDelete (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 ()
 
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

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

 DISALLOW_COPY_AND_ASSIGN (VlanPortBindingEntry)
 

Private Attributes

KSyncEntryPtr physical_port_
 
std::string logical_switch_name_
 
std::string physical_port_name_
 
std::string physical_device_name_
 
uint16_t vlan_
 
boost::uuids::uuid vmi_uuid_
 
std::string old_logical_switch_name_
 
LogicalSwitchRef logical_switch_
 

Friends

class VlanPortBindingTable
 

Additional Inherited Members

- 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
 
- 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 30 of file vlan_port_binding_ovsdb.h.

Constructor & Destructor Documentation

VlanPortBindingEntry::VlanPortBindingEntry ( VlanPortBindingTable table,
const std::string &  physical_device,
const std::string &  physical_port,
uint16_t  vlan_tag,
const std::string &  logical_switch 
)

Definition at line 26 of file vlan_port_binding_ovsdb.cc.

VlanPortBindingEntry::VlanPortBindingEntry ( VlanPortBindingTable table,
const VlanPortBindingEntry key 
)

Definition at line 43 of file vlan_port_binding_ovsdb.cc.

VlanPortBindingEntry::VlanPortBindingEntry ( VlanPortBindingTable table,
const VlanLogicalInterface entry 
)

Definition at line 35 of file vlan_port_binding_ovsdb.cc.

Member Function Documentation

void VlanPortBindingEntry::AddMsg ( struct ovsdb_idl_txn *  txn)
virtual

Reimplemented from OVSDB::OvsdbDBEntry.

Definition at line 68 of file vlan_port_binding_ovsdb.cc.

Here is the call graph for this function:

void VlanPortBindingEntry::ChangeMsg ( struct ovsdb_idl_txn *  txn)
virtual

Reimplemented from OVSDB::OvsdbDBEntry.

Definition at line 98 of file vlan_port_binding_ovsdb.cc.

Here is the call graph for this function:

void VlanPortBindingEntry::DeleteMsg ( struct ovsdb_idl_txn *  txn)
virtual

Reimplemented from OVSDB::OvsdbDBEntry.

Definition at line 112 of file vlan_port_binding_ovsdb.cc.

Here is the call graph for this function:

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

Implements KSyncEntry.

Definition at line 150 of file vlan_port_binding_ovsdb.cc.

bool OVSDB::VlanPortBindingEntry::IsNoTxnEntry ( )
inlineprotectedvirtual

Reimplemented from OVSDB::OvsdbDBEntry.

Definition at line 58 of file vlan_port_binding_ovsdb.h.

const std::string & VlanPortBindingEntry::logical_switch_name ( ) const

Definition at line 221 of file vlan_port_binding_ovsdb.cc.

const std::string & VlanPortBindingEntry::physical_device_name ( ) const

Definition at line 229 of file vlan_port_binding_ovsdb.cc.

const std::string & VlanPortBindingEntry::physical_port_name ( ) const

Definition at line 225 of file vlan_port_binding_ovsdb.cc.

void VlanPortBindingEntry::PostDelete ( )
virtual

Reimplemented from OVSDB::OvsdbDBEntry.

Definition at line 64 of file vlan_port_binding_ovsdb.cc.

void VlanPortBindingEntry::PreAddChange ( )
virtual

Reimplemented from OVSDB::OvsdbDBEntry.

Definition at line 52 of file vlan_port_binding_ovsdb.cc.

Here is the call graph for this function:

bool VlanPortBindingEntry::Sync ( DBEntry db_entry)
virtual

Implements KSyncDBEntry.

Definition at line 125 of file vlan_port_binding_ovsdb.cc.

Here is the call graph for this function:

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

Implements KSyncEntry.

Definition at line 48 of file vlan_port_binding_ovsdb.h.

KSyncEntry * VlanPortBindingEntry::UnresolvedReference ( )
virtual

Implements KSyncEntry.

Definition at line 160 of file vlan_port_binding_ovsdb.cc.

Here is the call graph for this function:

uint16_t VlanPortBindingEntry::vlan ( ) const

Definition at line 233 of file vlan_port_binding_ovsdb.cc.

Friends And Related Function Documentation

friend class VlanPortBindingTable
friend

Definition at line 61 of file vlan_port_binding_ovsdb.h.

Member Data Documentation

LogicalSwitchRef OVSDB::VlanPortBindingEntry::logical_switch_
private

Definition at line 70 of file vlan_port_binding_ovsdb.h.

std::string OVSDB::VlanPortBindingEntry::logical_switch_name_
private

Definition at line 64 of file vlan_port_binding_ovsdb.h.

std::string OVSDB::VlanPortBindingEntry::old_logical_switch_name_
private

Definition at line 69 of file vlan_port_binding_ovsdb.h.

std::string OVSDB::VlanPortBindingEntry::physical_device_name_
private

Definition at line 66 of file vlan_port_binding_ovsdb.h.

KSyncEntryPtr OVSDB::VlanPortBindingEntry::physical_port_
private

Definition at line 63 of file vlan_port_binding_ovsdb.h.

std::string OVSDB::VlanPortBindingEntry::physical_port_name_
private

Definition at line 65 of file vlan_port_binding_ovsdb.h.

uint16_t OVSDB::VlanPortBindingEntry::vlan_
private

Definition at line 67 of file vlan_port_binding_ovsdb.h.

boost::uuids::uuid OVSDB::VlanPortBindingEntry::vmi_uuid_
private

Definition at line 68 of file vlan_port_binding_ovsdb.h.


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