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

#include <nexthop.h>

Public Types

enum  Type {
  INVALID, MPLS_GRE, MPLS_UDP, VXLAN,
  NATIVE, MPLS_OVER_MPLS
}
 
typedef uint32_t TypeBmap
 
typedef std::list< TypePriorityList
 

Public Member Functions

 TunnelType (Type type)
 
 ~TunnelType ()
 
bool Compare (const TunnelType &rhs) const
 
bool IsLess (const TunnelType &rhs) const
 
std::string ToString () const
 
Type GetType () const
 
void SetType (TunnelType::Type type)
 

Static Public Member Functions

static std::string GetString (uint32_t type)
 
static void SetDefaultType (Type type)
 
static Type ComputeType (TypeBmap bmap)
 
static Type DefaultMplsComputeType ()
 
static Type DefaultType ()
 
static TypeBmap DefaultTypeBmap ()
 
static TypeBmap VxlanType ()
 
static TypeBmap MplsType ()
 
static TypeBmap MplsoMplsType ()
 
static TypeBmap GetTunnelBmap (TunnelType::Type type)
 
static TypeBmap AllType ()
 
static TypeBmap GREType ()
 
static TypeBmap UDPType ()
 
static TypeBmap NativeType ()
 
static TypeBmap MPLSType ()
 
static bool EncapPrioritySync (const std::vector< std::string > &cfg_list)
 
static void DeletePriorityList ()
 

Private Attributes

Type type_
 

Static Private Attributes

static PriorityList priority_list_
 
static Type default_type_
 

Detailed Description

Definition at line 236 of file nexthop.h.

Member Typedef Documentation

typedef std::list<Type> TunnelType::PriorityList

Definition at line 249 of file nexthop.h.

typedef uint32_t TunnelType::TypeBmap

Definition at line 248 of file nexthop.h.

Member Enumeration Documentation

Enumerator
INVALID 
MPLS_GRE 
MPLS_UDP 
VXLAN 
NATIVE 
MPLS_OVER_MPLS 

Definition at line 239 of file nexthop.h.

Constructor & Destructor Documentation

TunnelType::TunnelType ( Type  type)
inline

Definition at line 251 of file nexthop.h.

TunnelType::~TunnelType ( )
inline

Definition at line 252 of file nexthop.h.

Member Function Documentation

static TypeBmap TunnelType::AllType ( )
inlinestatic

Definition at line 321 of file nexthop.h.

bool TunnelType::Compare ( const TunnelType rhs) const
inline

Definition at line 253 of file nexthop.h.

TunnelType::Type TunnelType::ComputeType ( TunnelType::TypeBmap  bmap)
static

Definition at line 33 of file nexthop.cc.

static Type TunnelType::DefaultMplsComputeType ( )
static
static Type TunnelType::DefaultType ( )
inlinestatic

Definition at line 309 of file nexthop.h.

static TypeBmap TunnelType::DefaultTypeBmap ( )
inlinestatic

Definition at line 310 of file nexthop.h.

Here is the call graph for this function:

void TunnelType::DeletePriorityList ( )
static

Definition at line 77 of file nexthop.cc.

bool TunnelType::EncapPrioritySync ( const std::vector< std::string > &  cfg_list)
static

Definition at line 58 of file nexthop.cc.

static std::string TunnelType::GetString ( uint32_t  type)
inlinestatic

Definition at line 278 of file nexthop.h.

static TypeBmap TunnelType::GetTunnelBmap ( TunnelType::Type  type)
inlinestatic

Definition at line 314 of file nexthop.h.

Here is the call graph for this function:

Type TunnelType::GetType ( ) const
inline

Definition at line 303 of file nexthop.h.

static TypeBmap TunnelType::GREType ( )
inlinestatic

Definition at line 323 of file nexthop.h.

bool TunnelType::IsLess ( const TunnelType rhs) const
inline

Definition at line 256 of file nexthop.h.

static TypeBmap TunnelType::MplsoMplsType ( )
inlinestatic

Definition at line 313 of file nexthop.h.

static TypeBmap TunnelType::MplsType ( )
inlinestatic

Definition at line 312 of file nexthop.h.

static TypeBmap TunnelType::MPLSType ( )
inlinestatic

Definition at line 326 of file nexthop.h.

static TypeBmap TunnelType::NativeType ( )
inlinestatic

Definition at line 325 of file nexthop.h.

static void TunnelType::SetDefaultType ( Type  type)
inlinestatic

Definition at line 306 of file nexthop.h.

void TunnelType::SetType ( TunnelType::Type  type)
inline

Definition at line 304 of file nexthop.h.

std::string TunnelType::ToString ( ) const
inline

Definition at line 260 of file nexthop.h.

static TypeBmap TunnelType::UDPType ( )
inlinestatic

Definition at line 324 of file nexthop.h.

static TypeBmap TunnelType::VxlanType ( )
inlinestatic

Definition at line 311 of file nexthop.h.

Member Data Documentation

TunnelType::Type TunnelType::default_type_
staticprivate

Definition at line 333 of file nexthop.h.

TunnelType::PriorityList TunnelType::priority_list_
staticprivate

Definition at line 332 of file nexthop.h.

Type TunnelType::type_
private

Definition at line 331 of file nexthop.h.


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