OpenSDN source code
 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 
12 public:
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
static const std::string CommunityToString(uint32_t comm)
static uint32_t CommunityFromString(const std::string &comm, boost::system::error_code *perr=NULL)