OpenSDN source code
OVSDB::PhysicalSwitchEntry Class Reference

#include <physical_switch_ovsdb.h>

Inheritance diagram for OVSDB::PhysicalSwitchEntry:
Collaboration diagram for OVSDB::PhysicalSwitchEntry:

Public Types

enum  Trace { ADD , DEL }
 
typedef std::set< struct ovsdb_idl_row * > InterfaceList
 
- 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< KSyncEntryKSyncEntryPtr
 

Public Member Functions

 PhysicalSwitchEntry (PhysicalSwitchTable *table, const std::string &name)
 
 ~PhysicalSwitchEntry ()
 
bool Add ()
 
bool Delete ()
 
Ip4Addresstunnel_ip ()
 
const std::string & name ()
 
void set_tunnel_ip (std::string ip)
 
bool IsLess (const KSyncEntry &) const
 
std::string ToString () const
 
KSyncEntryUnresolvedReference ()
 
- Public Member Functions inherited from OVSDB::OvsdbEntry
 OvsdbEntry (OvsdbObject *table)
 
 OvsdbEntry (OvsdbObject *table, uint32_t index)
 
virtual ~OvsdbEntry ()
 
virtual bool Change ()
 
struct ovsdb_idl_row * ovs_entry ()
 
KSyncObjectGetObject () const
 
void Ack (bool success)
 
- 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 bool IsDataResolved ()
 
virtual void Response ()
 
virtual bool AllowDeleteStateComp ()
 
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
 
virtual void StaleTimerExpired ()
 
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 OVSDB::OvsdbEntryBase
virtual void TxnDoneNoMessage ()
 
KSyncEntry::KSyncEvent ack_event ()
 

Private Member Functions

void SendTrace (Trace event) const
 
 DISALLOW_COPY_AND_ASSIGN (PhysicalSwitchEntry)
 

Private Attributes

std::string name_
 
Ip4Address tunnel_ip_
 
InterfaceList intf_list_
 

Friends

class PhysicalSwitchTable
 

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 Member Functions inherited from KSyncEntry
void SetIndex (size_t index)
 
void SetState (KSyncState state)
 
- Protected Attributes inherited from OVSDB::OvsdbEntry
OvsdbObjecttable_
 
struct ovsdb_idl_row * ovs_entry_
 
- Protected Attributes inherited from OVSDB::OvsdbEntryBase
KSyncEntry::KSyncEvent ack_event_
 

Detailed Description

Definition at line 46 of file physical_switch_ovsdb.h.

Member Typedef Documentation

◆ InterfaceList

typedef std::set<struct ovsdb_idl_row *> OVSDB::PhysicalSwitchEntry::InterfaceList

Definition at line 48 of file physical_switch_ovsdb.h.

Member Enumeration Documentation

◆ Trace

Enumerator
ADD 
DEL 

Definition at line 50 of file physical_switch_ovsdb.h.

Constructor & Destructor Documentation

◆ PhysicalSwitchEntry()

PhysicalSwitchEntry::PhysicalSwitchEntry ( PhysicalSwitchTable table,
const std::string &  name 
)

Definition at line 26 of file physical_switch_ovsdb.cc.

◆ ~PhysicalSwitchEntry()

PhysicalSwitchEntry::~PhysicalSwitchEntry ( )

Definition at line 31 of file physical_switch_ovsdb.cc.

Member Function Documentation

◆ Add()

bool PhysicalSwitchEntry::Add ( )
virtual

Reimplemented from OVSDB::OvsdbEntry.

Definition at line 34 of file physical_switch_ovsdb.cc.

Here is the call graph for this function:

◆ Delete()

bool PhysicalSwitchEntry::Delete ( )
virtual

Reimplemented from OVSDB::OvsdbEntry.

Definition at line 40 of file physical_switch_ovsdb.cc.

Here is the call graph for this function:

◆ DISALLOW_COPY_AND_ASSIGN()

OVSDB::PhysicalSwitchEntry::DISALLOW_COPY_AND_ASSIGN ( PhysicalSwitchEntry  )
private

◆ IsLess()

bool PhysicalSwitchEntry::IsLess ( const KSyncEntry entry) const
virtual

Implements KSyncEntry.

Definition at line 59 of file physical_switch_ovsdb.cc.

◆ name()

const std::string & PhysicalSwitchEntry::name ( )

Definition at line 50 of file physical_switch_ovsdb.cc.

◆ SendTrace()

void PhysicalSwitchEntry::SendTrace ( Trace  event) const
private

Definition at line 69 of file physical_switch_ovsdb.cc.

◆ set_tunnel_ip()

void PhysicalSwitchEntry::set_tunnel_ip ( std::string  ip)

Definition at line 54 of file physical_switch_ovsdb.cc.

◆ ToString()

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

Implements KSyncEntry.

Definition at line 64 of file physical_switch_ovsdb.h.

◆ tunnel_ip()

Ip4Address & PhysicalSwitchEntry::tunnel_ip ( )

Definition at line 46 of file physical_switch_ovsdb.cc.

◆ UnresolvedReference()

KSyncEntry * PhysicalSwitchEntry::UnresolvedReference ( )
virtual

Implements KSyncEntry.

Definition at line 65 of file physical_switch_ovsdb.cc.

Friends And Related Function Documentation

◆ PhysicalSwitchTable

friend class PhysicalSwitchTable
friend

Definition at line 68 of file physical_switch_ovsdb.h.

Member Data Documentation

◆ intf_list_

InterfaceList OVSDB::PhysicalSwitchEntry::intf_list_
private

Definition at line 73 of file physical_switch_ovsdb.h.

◆ name_

std::string OVSDB::PhysicalSwitchEntry::name_
private

Definition at line 71 of file physical_switch_ovsdb.h.

◆ tunnel_ip_

Ip4Address OVSDB::PhysicalSwitchEntry::tunnel_ip_
private

Definition at line 72 of file physical_switch_ovsdb.h.


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