OpenSDN source code
community_type.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 Juniper Networks, Inc. All rights reserved.
3  * Copyright Contributors to the OpenSDN project
4  */
5 
6 #ifndef ctrlplane_communitytype_h
7 #define ctrlplane_communitytype_h
8 
9 #include <boost/system/error_code.hpp>
10 #include "base/util.h"
11 
13 public:
15  AcceptOwn = 0xFFFF0001,
16  LlgrStale = 0xFFFF0006,
17  NoLlgr = 0xFFFF0007,
18  NoReOriginate = 0xFFFFF000,
19  NoExport = 0xFFFFFF01,
20  NoAdvertise = 0xFFFFFF02,
21  NoExportSubconfed = 0xFFFFFF03,
22  AcceptOwnNexthop = 0xFFFF0008,
23  };
24 
25  CommunityType();
26 
27  static uint32_t CommunityFromString(const std::string &comm,
28  boost::system::error_code *perr = NULL);
29 
30  static const std::string CommunityToString(uint32_t comm);
31 };
32 
33 #endif
static uint32_t CommunityFromString(const std::string &comm, boost::system::error_code *perr=NULL)
static const std::string CommunityToString(uint32_t comm)