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

#include <nexthop.h>

Inheritance diagram for TunnelNHKey:
Collaboration diagram for TunnelNHKey:

Public Member Functions

 TunnelNHKey (const string &vrf_name, const Ip4Address &sip, const Ip4Address &dip, bool policy, TunnelType type, const MacAddress &rewrite_dmac=MacAddress())
 
virtual ~TunnelNHKey ()
 
virtual NextHopAllocEntry () const
 
virtual NextHopKeyClone () const
 
virtual bool NextHopKeyIsLess (const NextHopKey &rhs) const
 
void set_tunnel_type (TunnelType tunnel_type)
 
const Ip4Addressdip () const
 
const MacAddressrewrite_dmac ()
 
- Public Member Functions inherited from NextHopKey
 NextHopKey (NextHop::Type type, bool policy)
 
virtual ~NextHopKey ()
 
bool IsEqual (const NextHopKey &rhs) const
 
void SetPolicy (bool policy)
 
NextHop::Type GetType () const
 
bool GetPolicy () const
 
bool IsLess (const NextHopKey &rhs) const
 
- Public Member Functions inherited from AgentKey
 AgentKey ()
 
 AgentKey (DBSubOperation sub_op)
 
virtual ~AgentKey ()
 
- Public Member Functions inherited from DBRequestKey
virtual ~DBRequestKey ()
 

Protected Attributes

VrfKey vrf_key_
 
Ip4Address sip_
 
Ip4Address dip_
 
TunnelType tunnel_type_
 
MacAddress rewrite_dmac_
 
- Protected Attributes inherited from NextHopKey
NextHop::Type type_
 
bool policy_
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (TunnelNHKey)
 

Friends

class TunnelNH
 

Additional Inherited Members

- Public Types inherited from AgentKey
enum  DBSubOperation { ADD_DEL_CHANGE, RESYNC }
 
- Public Attributes inherited from AgentKey
uint8_t sub_op_
 

Detailed Description

Definition at line 956 of file nexthop.h.

Constructor & Destructor Documentation

TunnelNHKey::TunnelNHKey ( const string &  vrf_name,
const Ip4Address sip,
const Ip4Address dip,
bool  policy,
TunnelType  type,
const MacAddress rewrite_dmac = MacAddress() 
)
inline

Definition at line 958 of file nexthop.h.

virtual TunnelNHKey::~TunnelNHKey ( )
inlinevirtual

Definition at line 967 of file nexthop.h.

Member Function Documentation

NextHop * TunnelNHKey::AllocEntry ( ) const
virtual

Implements NextHopKey.

Reimplemented in LabelledTunnelNHKey.

Definition at line 1014 of file nexthop.cc.

Here is the call graph for this function:

virtual NextHopKey* TunnelNHKey::Clone ( ) const
inlinevirtual

Implements NextHopKey.

Reimplemented in LabelledTunnelNHKey.

Definition at line 970 of file nexthop.h.

Here is the call graph for this function:

const Ip4Address& TunnelNHKey::dip ( ) const
inline

Definition at line 999 of file nexthop.h.

TunnelNHKey::DISALLOW_COPY_AND_ASSIGN ( TunnelNHKey  )
private
virtual bool TunnelNHKey::NextHopKeyIsLess ( const NextHopKey rhs) const
inlinevirtual

Reimplemented from NextHopKey.

Reimplemented in LabelledTunnelNHKey.

Definition at line 976 of file nexthop.h.

Here is the call graph for this function:

const MacAddress& TunnelNHKey::rewrite_dmac ( )
inline

Definition at line 1002 of file nexthop.h.

void TunnelNHKey::set_tunnel_type ( TunnelType  tunnel_type)
inline

Definition at line 996 of file nexthop.h.

Friends And Related Function Documentation

friend class TunnelNH
friend

Definition at line 1006 of file nexthop.h.

Member Data Documentation

Ip4Address TunnelNHKey::dip_
protected

Definition at line 1009 of file nexthop.h.

MacAddress TunnelNHKey::rewrite_dmac_
protected

Definition at line 1011 of file nexthop.h.

Ip4Address TunnelNHKey::sip_
protected

Definition at line 1008 of file nexthop.h.

TunnelType TunnelNHKey::tunnel_type_
protected

Definition at line 1010 of file nexthop.h.

VrfKey TunnelNHKey::vrf_key_
protected

Definition at line 1007 of file nexthop.h.


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