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

#include <nexthop.h>

Inheritance diagram for VlanNH:
Collaboration diagram for VlanNH:

Public Member Functions

 VlanNH (Interface *intf, uint32_t vlan_tag)
 
virtual ~VlanNH ()
 
bool NextHopIsLess (const DBEntry &rhs) const
 
virtual void SetKey (const DBRequestKey *key)
 
virtual KeyPtr GetDBRequestKey () const
 
virtual void Delete (const DBRequest *req)
 
virtual bool ChangeEntry (const DBRequest *req)
 
virtual void SendObjectLog (const NextHopTable *table, AgentLogEvent::type event) const
 
virtual bool CanAdd () const
 
const InterfaceGetInterface () const
 
uint16_t GetVlanTag () const
 
const boost::uuids::uuidGetIfUuid () const
 
const VrfEntryGetVrf () const
 
const MacAddressGetSMac () const
 
const MacAddressGetDMac () const
 
virtual bool MatchEgressData (const NextHop *nh) const
 
virtual bool NeedMplsLabel ()
 
- Public Member Functions inherited from NextHop
 NextHop (Type type, bool policy)
 
 NextHop (Type type, bool valid, bool policy)
 
virtual ~NextHop ()
 
virtual std::string ToString () const
 
virtual void Add (Agent *agent, const DBRequest *req)
 
virtual void Change (const DBRequest *req)
 
virtual bool IsLess (const DBEntry &rhs) const
 
virtual bool DeleteOnZeroRefCount () const
 
virtual void OnZeroRefCount ()
 
uint32_t GetRefCount () const
 
void ResetMplsRef ()
 
Type GetType () const
 
bool IsValid () const
 
bool PolicyEnabled () const
 
uint32_t id () const
 
void set_id (uint32_t index)
 
void set_etree_leaf (bool val)
 
bool etree_leaf () const
 
void set_learning_flag (bool val)
 
bool learning_enabled () const
 
bool DBEntrySandesh (Sandesh *sresp, std::string &name) const
 
void SetNHSandeshData (NhSandeshData &data) const
 
bool NexthopToInterfacePolicy () const
 
const MplsLabelmpls_label () const
 
MplsLabelAllocateLabel (Agent *agent, const NextHopKey *key)
 
void PostAdd ()
 
void EnqueueResync () 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)
 
- 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 ()
 

Static Public Member Functions

static VlanNHFind (const boost::uuids::uuid &intf_uuid, uint16_t vlan_tag)
 
static void Create (const boost::uuids::uuid &intf_uuid, uint16_t vlan_tag, const std::string &vrf_name, const MacAddress &smac, const MacAddress &dmac)
 
static void Delete (const boost::uuids::uuid &intf_uuid, uint16_t vlan_tag)
 
static void CreateReq (const boost::uuids::uuid &intf_uuid, uint16_t vlan_tag, const std::string &vrf_name, const MacAddress &smac, const MacAddress &dmac)
 
static void DeleteReq (const boost::uuids::uuid &intf_uuid, uint16_t vlan_tag)
 
- Static Public Member Functions inherited from NextHop
static void FillObjectLogIntf (const Interface *intf, NextHopObjectLogInfo &info)
 
static void FillObjectLogMac (const unsigned char *m, NextHopObjectLogInfo &info)
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (VlanNH)
 

Private Attributes

InterfaceRef interface_
 
uint16_t vlan_tag_
 
MacAddress smac_
 
MacAddress dmac_
 
VrfEntryRef vrf_
 

Additional Inherited Members

- Public Types inherited from NextHop
enum  Type {
  INVALID, DISCARD, L2_RECEIVE, RECEIVE,
  RESOLVE, ARP, VRF, INTERFACE,
  TUNNEL, MIRROR, COMPOSITE, VLAN,
  PBB, NDP
}
 
- 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_
 
- Static Public Attributes inherited from NextHop
static const uint32_t kInvalidIndex = 0xFFFFFFFF
 
- Protected Member Functions inherited from NextHop
void FillObjectLog (AgentLogEvent::type event, NextHopObjectLogInfo &info) const
 
- Protected Attributes inherited from NextHop
Type type_
 
bool valid_
 
bool policy_
 
uint32_t id_
 
MplsLabelRef mpls_label_
 
bool learning_enabled_
 
bool etree_leaf_
 

Detailed Description

Definition at line 1527 of file nexthop.h.

Constructor & Destructor Documentation

VlanNH::VlanNH ( Interface intf,
uint32_t  vlan_tag 
)
inline

Definition at line 1529 of file nexthop.h.

virtual VlanNH::~VlanNH ( )
inlinevirtual

Definition at line 1532 of file nexthop.h.

Member Function Documentation

bool VlanNH::CanAdd ( ) const
virtual

Implements NextHop.

Definition at line 1636 of file nexthop.cc.

bool VlanNH::ChangeEntry ( const DBRequest req)
virtual

Implements NextHop.

Definition at line 1674 of file nexthop.cc.

Here is the call graph for this function:

void VlanNH::Create ( const boost::uuids::uuid intf_uuid,
uint16_t  vlan_tag,
const std::string &  vrf_name,
const MacAddress smac,
const MacAddress dmac 
)
static

Definition at line 1703 of file nexthop.cc.

Here is the call graph for this function:

void VlanNH::CreateReq ( const boost::uuids::uuid intf_uuid,
uint16_t  vlan_tag,
const std::string &  vrf_name,
const MacAddress smac,
const MacAddress dmac 
)
static

Definition at line 1729 of file nexthop.cc.

Here is the call graph for this function:

virtual void VlanNH::Delete ( const DBRequest req)
inlinevirtual

Reimplemented from NextHop.

Definition at line 1537 of file nexthop.h.

void VlanNH::Delete ( const boost::uuids::uuid intf_uuid,
uint16_t  vlan_tag 
)
static

Definition at line 1717 of file nexthop.cc.

Here is the call graph for this function:

void VlanNH::DeleteReq ( const boost::uuids::uuid intf_uuid,
uint16_t  vlan_tag 
)
static

Definition at line 1738 of file nexthop.cc.

Here is the call graph for this function:

VlanNH::DISALLOW_COPY_AND_ASSIGN ( VlanNH  )
private
VlanNH * VlanNH::Find ( const boost::uuids::uuid intf_uuid,
uint16_t  vlan_tag 
)
static

Definition at line 1750 of file nexthop.cc.

Here is the call graph for this function:

VlanNH::KeyPtr VlanNH::GetDBRequestKey ( ) const
virtual

Implements DBEntryBase.

Definition at line 1661 of file nexthop.cc.

const MacAddress& VlanNH::GetDMac ( ) const
inline

Definition at line 1548 of file nexthop.h.

const boost::uuids::uuid & VlanNH::GetIfUuid ( ) const

Definition at line 1698 of file nexthop.cc.

const Interface* VlanNH::GetInterface ( ) const
inline

Definition at line 1543 of file nexthop.h.

const MacAddress& VlanNH::GetSMac ( ) const
inline

Definition at line 1547 of file nexthop.h.

uint16_t VlanNH::GetVlanTag ( ) const
inline

Definition at line 1544 of file nexthop.h.

const VrfEntry* VlanNH::GetVrf ( ) const
inline

Definition at line 1546 of file nexthop.h.

virtual bool VlanNH::MatchEgressData ( const NextHop nh) const
inlinevirtual

Implements NextHop.

Definition at line 1560 of file nexthop.h.

virtual bool VlanNH::NeedMplsLabel ( )
inlinevirtual

Implements NextHop.

Definition at line 1567 of file nexthop.h.

bool VlanNH::NextHopIsLess ( const DBEntry rhs) const
virtual

Implements NextHop.

Definition at line 1651 of file nexthop.cc.

void VlanNH::SendObjectLog ( const NextHopTable table,
AgentLogEvent::type  event 
) const
virtual

Reimplemented from NextHop.

Definition at line 1755 of file nexthop.cc.

Here is the call graph for this function:

void VlanNH::SetKey ( const DBRequestKey key)
virtual

Reimplemented from NextHop.

Definition at line 1666 of file nexthop.cc.

Here is the call graph for this function:

Member Data Documentation

MacAddress VlanNH::dmac_
private

Definition at line 1573 of file nexthop.h.

InterfaceRef VlanNH::interface_
private

Definition at line 1570 of file nexthop.h.

MacAddress VlanNH::smac_
private

Definition at line 1572 of file nexthop.h.

uint16_t VlanNH::vlan_tag_
private

Definition at line 1571 of file nexthop.h.

VrfEntryRef VlanNH::vrf_
private

Definition at line 1574 of file nexthop.h.


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