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

#include <physical_device_vn.h>

Inheritance diagram for PhysicalDeviceVn:
Collaboration diagram for PhysicalDeviceVn:

Public Member Functions

 PhysicalDeviceVn (const boost::uuids::uuid &device_uuid, const boost::uuids::uuid &vn_uuid)
 
virtual ~PhysicalDeviceVn ()
 
virtual bool IsLess (const DBEntry &rhs) const
 
virtual void SetKey (const DBRequestKey *key)
 
virtual std::string ToString () const
 
uint32_t GetRefCount () const
 
DBEntryBase::KeyPtr GetDBRequestKey () const
 
const boost::uuids::uuiddevice_uuid () const
 
PhysicalDevicedevice () const
 
const boost::uuids::uuidvn_uuid () const
 
VnEntryvn () const
 
int vxlan_id () const
 
const IpAddresstor_ip () const
 
const std::string & device_display_name () const
 
bool Copy (PhysicalDeviceVnTable *table, const PhysicalDeviceVnData *data)
 
void SendObjectLog (AgentLogEvent::type event) const
 
bool DBEntrySandesh (Sandesh *sresp, std::string &name) const
 
- Public Member Functions inherited from AgentDBEntry
 AgentDBEntry ()
 
virtual ~AgentDBEntry ()
 
void SetRefState () const
 
void ClearRefState () const
 
bool IsActive () const
 
DBStateGetAgentDBEntryState (int listener_id)
 
const DBStateGetAgentDBEntryState (int listener_id) const
 
virtual void AllocateResources (ResourceManager *resource_manager)
 
virtual void FreeResources (ResourceManager *resource_manager)
 
virtual void PostAdd ()
 
- Public Member Functions inherited from DBEntry
 DBEntry ()
 
virtual ~DBEntry ()
 
bool operator< (const DBEntry &rhs) const
 
- Public Member Functions inherited from DBEntryBase
 DBEntryBase ()
 
virtual ~DBEntryBase ()
 
virtual bool IsMoreSpecific (const std::string &match) const
 
virtual bool IsLessSpecific (const std::string &match) const
 
void SetState (DBTableBase *tbl_base, ListenerId listener, DBState *state)
 
void ClearState (DBTableBase *tbl_base, ListenerId listener)
 
DBStateGetState (DBTableBase *tbl_base, ListenerId listener) const
 
const DBStateGetState (const DBTableBase *tbl_base, ListenerId listener) const
 
bool is_state_empty (DBTablePartBase *tpart)
 
bool is_state_empty_unlocked (DBTablePartBase *tpart)
 
void Delete ()
 
void MarkDelete ()
 
void ClearDelete ()
 
bool IsDeleted () const
 
void set_onlist ()
 
void clear_onlist ()
 
bool is_onlist ()
 
void SetOnRemoveQ ()
 
bool IsOnRemoveQ ()
 
void ClearOnRemoveQ ()
 
void set_last_change_at (uint64_t time)
 
void set_last_change_at_to_now ()
 
const uint64_t last_change_at () const
 
const std::string last_change_at_str () const
 
void set_last_update_at (uint64_t time)
 
void set_last_update_at_to_now ()
 
const uint64_t last_update_at () const
 
DBTablePartBaseget_table_partition () const
 
void set_table_partition (DBTablePartBase *tpart)
 
DBTableBaseget_table () const
 
void Notify ()
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (PhysicalDeviceVn)
 
- Private Member Functions inherited from AgentRefCount< PhysicalDeviceVn >
uint32_t GetRefCount () const
 
 AgentRefCount ()
 
 AgentRefCount (const AgentRefCount &)
 
AgentRefCountoperator= (const AgentRefCount &)
 
virtual ~AgentRefCount ()
 
void swap (AgentRefCount &)
 

Private Attributes

boost::uuids::uuid device_uuid_
 
boost::uuids::uuid vn_uuid_
 
PhysicalDeviceRef device_
 
VnEntryRef vn_
 
int vxlan_id_
 
IpAddress tor_ip_
 
std::string device_display_name_
 
- Private Attributes inherited from AgentRefCount< PhysicalDeviceVn >
tbb::mutex back_ref_mutex_
 
std::set< IntrusiveReferrerback_ref_set_
 

Friends

class PhysicalDeviceVnTable
 

Additional Inherited Members

- Public Types inherited from AgentDBEntry
typedef boost::intrusive_ptr
< AgentDBEntry
AgentDBEntyRef
 
- Public Types inherited from DBEntryBase
typedef DBTableBase::ListenerId ListenerId
 
typedef std::unique_ptr
< DBRequestKey
KeyPtr
 
- Public Attributes inherited from DBEntryBase
boost::intrusive::list_member_hook chg_list_
 

Detailed Description

Definition at line 63 of file physical_device_vn.h.

Constructor & Destructor Documentation

PhysicalDeviceVn::PhysicalDeviceVn ( const boost::uuids::uuid device_uuid,
const boost::uuids::uuid vn_uuid 
)
inline

Definition at line 66 of file physical_device_vn.h.

virtual PhysicalDeviceVn::~PhysicalDeviceVn ( )
inlinevirtual

Definition at line 70 of file physical_device_vn.h.

Member Function Documentation

bool PhysicalDeviceVn::Copy ( PhysicalDeviceVnTable table,
const PhysicalDeviceVnData data 
)

Definition at line 51 of file physical_device_vn.cc.

Here is the call graph for this function:

bool PhysicalDeviceVn::DBEntrySandesh ( Sandesh sresp,
std::string &  name 
) const
virtual

Implements AgentDBEntry.

Definition at line 310 of file physical_device_vn.cc.

Here is the call graph for this function:

PhysicalDevice* PhysicalDeviceVn::device ( ) const
inline

Definition at line 81 of file physical_device_vn.h.

const std::string& PhysicalDeviceVn::device_display_name ( ) const
inline

Definition at line 87 of file physical_device_vn.h.

const boost::uuids::uuid& PhysicalDeviceVn::device_uuid ( ) const
inline

Definition at line 80 of file physical_device_vn.h.

PhysicalDeviceVn::DISALLOW_COPY_AND_ASSIGN ( PhysicalDeviceVn  )
private
DBEntryBase::KeyPtr PhysicalDeviceVn::GetDBRequestKey ( ) const
virtual

Implements DBEntryBase.

Definition at line 38 of file physical_device_vn.cc.

uint32_t PhysicalDeviceVn::GetRefCount ( ) const
inlinevirtual

Implements AgentDBEntry.

Definition at line 75 of file physical_device_vn.h.

Here is the call graph for this function:

bool PhysicalDeviceVn::IsLess ( const DBEntry rhs) const
virtual

Implements DBEntry.

Definition at line 25 of file physical_device_vn.cc.

void PhysicalDeviceVn::SendObjectLog ( AgentLogEvent::type  event) const

Definition at line 338 of file physical_device_vn.cc.

Here is the call graph for this function:

void PhysicalDeviceVn::SetKey ( const DBRequestKey key)
virtual

Implements DBEntry.

Definition at line 43 of file physical_device_vn.cc.

const IpAddress& PhysicalDeviceVn::tor_ip ( ) const
inline

Definition at line 86 of file physical_device_vn.h.

string PhysicalDeviceVn::ToString ( ) const
virtual

Implements DBEntryBase.

Definition at line 34 of file physical_device_vn.cc.

Here is the call graph for this function:

VnEntry* PhysicalDeviceVn::vn ( ) const
inline

Definition at line 84 of file physical_device_vn.h.

const boost::uuids::uuid& PhysicalDeviceVn::vn_uuid ( ) const
inline

Definition at line 83 of file physical_device_vn.h.

int PhysicalDeviceVn::vxlan_id ( ) const
inline

Definition at line 85 of file physical_device_vn.h.

Friends And Related Function Documentation

friend class PhysicalDeviceVnTable
friend

Definition at line 94 of file physical_device_vn.h.

Member Data Documentation

PhysicalDeviceRef PhysicalDeviceVn::device_
private

Definition at line 98 of file physical_device_vn.h.

std::string PhysicalDeviceVn::device_display_name_
private

Definition at line 102 of file physical_device_vn.h.

boost::uuids::uuid PhysicalDeviceVn::device_uuid_
private

Definition at line 95 of file physical_device_vn.h.

IpAddress PhysicalDeviceVn::tor_ip_
private

Definition at line 101 of file physical_device_vn.h.

VnEntryRef PhysicalDeviceVn::vn_
private

Definition at line 99 of file physical_device_vn.h.

boost::uuids::uuid PhysicalDeviceVn::vn_uuid_
private

Definition at line 96 of file physical_device_vn.h.

int PhysicalDeviceVn::vxlan_id_
private

Definition at line 100 of file physical_device_vn.h.


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