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

#include <tunnel_nh.h>

Inheritance diagram for MirrorNH:
Collaboration diagram for MirrorNH:

Public Member Functions

 MirrorNH (const VrfKey &vkey, const IpAddress &sip, uint16_t sport, const IpAddress &dip, uint16_t dport)
 
virtual ~MirrorNH ()
 
virtual bool NextHopIsLess (const DBEntry &rhs) const
 
virtual void SetKey (const DBRequestKey *key)
 
virtual bool ChangeEntry (const DBRequest *req)
 
virtual void Delete (const DBRequest *req)
 
virtual KeyPtr GetDBRequestKey () const
 
virtual bool CanAdd () const
 
const uint32_t vrf_id () const
 
const VrfEntryGetVrf () const
 
const IpAddressGetSip () const
 
const uint16_t GetSPort () const
 
const IpAddressGetDip () const
 
const uint16_t GetDPort () const
 
const AgentRouteGetRt () const
 
virtual std::string ToString () const
 
virtual void SendObjectLog (const NextHopTable *table, AgentLogEvent::type event) const
 
virtual bool DeleteOnZeroRefCount () 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 void Add (Agent *agent, const DBRequest *req)
 
virtual void Change (const DBRequest *req)
 
virtual bool IsLess (const DBEntry &rhs) 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 ()
 

Private Member Functions

InetUnicastAgentRouteTableGetRouteTable ()
 
 DISALLOW_COPY_AND_ASSIGN (MirrorNH)
 

Private Attributes

std::string vrf_name_
 
VrfEntryRef vrf_
 
IpAddress sip_
 
uint16_t sport_
 
IpAddress dip_
 
uint16_t dport_
 
DependencyRef< NextHop,
AgentRoute
arp_rt_
 
InterfaceConstRef interface_
 
MacAddress dmac_
 

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
 
- Static Public Member Functions inherited from NextHop
static void FillObjectLogIntf (const Interface *intf, NextHopObjectLogInfo &info)
 
static void FillObjectLogMac (const unsigned char *m, NextHopObjectLogInfo &info)
 
- 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 156 of file tunnel_nh.h.

Constructor & Destructor Documentation

MirrorNH::MirrorNH ( const VrfKey vkey,
const IpAddress sip,
uint16_t  sport,
const IpAddress dip,
uint16_t  dport 
)

Definition at line 1312 of file nexthop.cc.

Here is the call graph for this function:

virtual MirrorNH::~MirrorNH ( )
inlinevirtual

Definition at line 160 of file tunnel_nh.h.

Member Function Documentation

bool MirrorNH::CanAdd ( ) const
virtual

Implements NextHop.

Definition at line 1322 of file nexthop.cc.

bool MirrorNH::ChangeEntry ( const DBRequest req)
virtual

Implements NextHop.

Definition at line 1381 of file nexthop.cc.

Here is the call graph for this function:

void MirrorNH::Delete ( const DBRequest req)
virtual

Reimplemented from NextHop.

Definition at line 1471 of file nexthop.cc.

Here is the call graph for this function:

virtual bool MirrorNH::DeleteOnZeroRefCount ( ) const
inlinevirtual

Reimplemented from NextHop.

Definition at line 181 of file tunnel_nh.h.

MirrorNH::DISALLOW_COPY_AND_ASSIGN ( MirrorNH  )
private
MirrorNH::KeyPtr MirrorNH::GetDBRequestKey ( ) const
virtual

Implements DBEntryBase.

Definition at line 1365 of file nexthop.cc.

const IpAddress* MirrorNH::GetDip ( ) const
inline

Definition at line 173 of file tunnel_nh.h.

const uint16_t MirrorNH::GetDPort ( ) const
inline

Definition at line 174 of file tunnel_nh.h.

InetUnicastAgentRouteTable * MirrorNH::GetRouteTable ( )
private

Definition at line 1371 of file nexthop.cc.

Here is the call graph for this function:

const AgentRoute* MirrorNH::GetRt ( ) const
inline

Definition at line 175 of file tunnel_nh.h.

Here is the call graph for this function:

const IpAddress* MirrorNH::GetSip ( ) const
inline

Definition at line 171 of file tunnel_nh.h.

const uint16_t MirrorNH::GetSPort ( ) const
inline

Definition at line 172 of file tunnel_nh.h.

const VrfEntry* MirrorNH::GetVrf ( ) const
inline

Definition at line 170 of file tunnel_nh.h.

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

Implements NextHop.

Definition at line 184 of file tunnel_nh.h.

virtual bool MirrorNH::NeedMplsLabel ( )
inlinevirtual

Implements NextHop.

Definition at line 191 of file tunnel_nh.h.

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

Implements NextHop.

Definition at line 1337 of file nexthop.cc.

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

Reimplemented from NextHop.

Definition at line 1479 of file nexthop.cc.

Here is the call graph for this function:

void MirrorNH::SetKey ( const DBRequestKey key)
virtual

Reimplemented from NextHop.

Definition at line 1355 of file nexthop.cc.

Here is the call graph for this function:

virtual std::string MirrorNH::ToString ( ) const
inlinevirtual

Reimplemented from NextHop.

Definition at line 176 of file tunnel_nh.h.

const uint32_t MirrorNH::vrf_id ( ) const

Definition at line 1351 of file nexthop.cc.

Member Data Documentation

DependencyRef<NextHop, AgentRoute> MirrorNH::arp_rt_
private

Definition at line 200 of file tunnel_nh.h.

IpAddress MirrorNH::dip_
private

Definition at line 198 of file tunnel_nh.h.

MacAddress MirrorNH::dmac_
private

Definition at line 202 of file tunnel_nh.h.

uint16_t MirrorNH::dport_
private

Definition at line 199 of file tunnel_nh.h.

InterfaceConstRef MirrorNH::interface_
private

Definition at line 201 of file tunnel_nh.h.

IpAddress MirrorNH::sip_
private

Definition at line 196 of file tunnel_nh.h.

uint16_t MirrorNH::sport_
private

Definition at line 197 of file tunnel_nh.h.

VrfEntryRef MirrorNH::vrf_
private

Definition at line 195 of file tunnel_nh.h.

std::string MirrorNH::vrf_name_
private

Definition at line 194 of file tunnel_nh.h.


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