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

#include <tunnel_nh.h>

Inheritance diagram for LabelledTunnelNH:
Collaboration diagram for LabelledTunnelNH:

Public Member Functions

 LabelledTunnelNH (VrfEntry *vrf, const Ip4Address &sip, const Ip4Address &dip, bool policy, TunnelType type, const MacAddress &rewrite_dmac, uint32_t label)
 
virtual ~LabelledTunnelNH ()
 
virtual std::string ToString () const
 
virtual bool TunnelNextHopIsLess (const DBEntry &rhs) const
 
virtual bool ChangeEntry (const DBRequest *req)
 
virtual KeyPtr GetDBRequestKey () const
 
uint32_t const GetTransportLabel () const
 
virtual void SendObjectLog (const NextHopTable *table, AgentLogEvent::type event) const
 
virtual bool DeleteOnZeroRefCount () const
 
virtual bool NeedMplsLabel ()
 
TunnelType::Type const GetTransportTunnelType () const
 
void SetTransportTunnelType ()
 
- Public Member Functions inherited from TunnelNH
 TunnelNH (VrfEntry *vrf, const Ip4Address &sip, const Ip4Address &dip, bool policy, TunnelType type, const MacAddress &rewrite_dmac)
 
virtual ~TunnelNH ()
 
virtual bool NextHopIsLess (const DBEntry &rhs) const
 
virtual void SetKey (const DBRequestKey *key)
 
virtual void Delete (const DBRequest *req)
 
virtual bool CanAdd () const
 
const uint32_t vrf_id () const
 
const VrfEntryGetVrf () const
 
const Ip4AddressGetSip () const
 
const Ip4AddressGetDip () const
 
const AgentRouteGetRt () const
 
const MacAddressGetDmac () const
 
const bool & IsEncapValid (const uint32_t &i) const
 
const MacAddressrewrite_dmac () const
 
const TunnelTypeGetTunnelType () const
 
const InterfaceGetCryptInterface () const
 
bool GetCrypt () const
 
bool GetCryptTunnelAvailable () const
 
virtual bool MatchEgressData (const NextHop *nh) const
 
const EncapDataList GetEncapDataList () const
 
- 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

 DISALLOW_COPY_AND_ASSIGN (LabelledTunnelNH)
 

Private Attributes

uint32_t transport_mpls_label_
 
TunnelType::Type transport_tunnel_type_
 

Additional Inherited Members

- Public Types inherited from TunnelNH
typedef boost::shared_ptr
< EncapData
EncapDataPtr
 
typedef std::vector< EncapDataPtrEncapDataList
 
- 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 TunnelNH
VrfEntryRef vrf_
 
Ip4Address sip_
 
Ip4Address dip_
 
TunnelType tunnel_type_
 
AgentRoutetunnel_dst_rt_
 
EncapDataList encap_list_
 
bool crypt_
 
bool crypt_tunnel_available_
 
InterfaceConstRef crypt_interface_
 
MacAddress rewrite_dmac_
 
- 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 86 of file tunnel_nh.h.

Constructor & Destructor Documentation

LabelledTunnelNH::LabelledTunnelNH ( VrfEntry vrf,
const Ip4Address sip,
const Ip4Address dip,
bool  policy,
TunnelType  type,
const MacAddress rewrite_dmac,
uint32_t  label 
)

Definition at line 1245 of file nexthop.cc.

LabelledTunnelNH::~LabelledTunnelNH ( )
virtual

Definition at line 1251 of file nexthop.cc.

Member Function Documentation

bool LabelledTunnelNH::ChangeEntry ( const DBRequest req)
virtual

Reimplemented from TunnelNH.

Definition at line 1273 of file nexthop.cc.

Here is the call graph for this function:

virtual bool LabelledTunnelNH::DeleteOnZeroRefCount ( ) const
inlinevirtual

Reimplemented from TunnelNH.

Definition at line 104 of file tunnel_nh.h.

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

Reimplemented from TunnelNH.

Definition at line 1261 of file nexthop.cc.

uint32_t const LabelledTunnelNH::GetTransportLabel ( ) const
inline

Definition at line 100 of file tunnel_nh.h.

TunnelType::Type const LabelledTunnelNH::GetTransportTunnelType ( ) const
inline

Definition at line 109 of file tunnel_nh.h.

virtual bool LabelledTunnelNH::NeedMplsLabel ( )
inlinevirtual

Reimplemented from TunnelNH.

Definition at line 108 of file tunnel_nh.h.

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

Reimplemented from TunnelNH.

Definition at line 1285 of file nexthop.cc.

Here is the call graph for this function:

void LabelledTunnelNH::SetTransportTunnelType ( )
inline

Definition at line 111 of file tunnel_nh.h.

Here is the call graph for this function:

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

Reimplemented from TunnelNH.

Definition at line 93 of file tunnel_nh.h.

Here is the call graph for this function:

bool LabelledTunnelNH::TunnelNextHopIsLess ( const DBEntry rhs) const
virtual

Reimplemented from TunnelNH.

Definition at line 1267 of file nexthop.cc.

Member Data Documentation

uint32_t LabelledTunnelNH::transport_mpls_label_
private

Definition at line 116 of file tunnel_nh.h.

TunnelType::Type LabelledTunnelNH::transport_tunnel_type_
private

Definition at line 117 of file tunnel_nh.h.


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