OpenSDN source code
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
community_type.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2015 Juniper Networks, Inc. All rights reserved.
3
*/
4
5
#ifndef ctrlplane_communitytype_h
6
#define ctrlplane_communitytype_h
7
8
#include <boost/system/error_code.hpp>
9
#include "
base/util.h
"
10
11
class
CommunityType
{
12
public
:
13
enum
WellKnownCommunity
{
14
AcceptOwn
= 0xFFFF0001,
15
LlgrStale
= 0xFFFF0006,
16
NoLlgr
= 0xFFFF0007,
17
NoReOriginate
= 0xFFFFF000,
18
NoExport
= 0xFFFFFF01,
19
NoAdvertise
= 0xFFFFFF02,
20
NoExportSubconfed
= 0xFFFFFF03,
21
AcceptOwnNexthop
= 0xFFFF0008,
22
};
23
24
CommunityType
();
25
26
static
uint32_t
CommunityFromString
(
const
std::string &comm,
27
boost::system::error_code *perr = NULL);
28
29
static
const
std::string
CommunityToString
(uint32_t comm);
30
};
31
32
#endif
CommunityType::LlgrStale
Definition:
community_type.h:15
CommunityType::CommunityToString
static const std::string CommunityToString(uint32_t comm)
Definition:
community_type.cc:77
CommunityType::AcceptOwnNexthop
Definition:
community_type.h:21
CommunityType::AcceptOwn
Definition:
community_type.h:14
CommunityType
Definition:
community_type.h:11
util.h
CommunityType::NoExportSubconfed
Definition:
community_type.h:20
CommunityType::CommunityType
CommunityType()
Definition:
community_type.cc:16
CommunityType::NoExport
Definition:
community_type.h:18
CommunityType::NoReOriginate
Definition:
community_type.h:17
CommunityType::WellKnownCommunity
WellKnownCommunity
Definition:
community_type.h:13
CommunityType::NoAdvertise
Definition:
community_type.h:19
CommunityType::CommunityFromString
static uint32_t CommunityFromString(const std::string &comm, boost::system::error_code *perr=NULL)
Definition:
community_type.cc:41
CommunityType::NoLlgr
Definition:
community_type.h:16
contrail
controller
src
net
community_type.h
Generated by
1.8.5