OpenSDN source code
community_type.cc File Reference
#include "net/community_type.h"
#include <map>
#include <boost/assign/list_of.hpp>
#include "base/string_util.h"
Include dependency graph for community_type.cc:

Go to the source code of this file.

Variables

static const map< string, CommunityType::WellKnownCommunityfromString
 
static const map< CommunityType::WellKnownCommunity, string > toString
 

Variable Documentation

◆ fromString

const map<string, CommunityType::WellKnownCommunity> fromString
static
Initial value:
= boost::assign::map_list_of
("no-advertise", CommunityType::NoAdvertise)
("no-export", CommunityType::NoExport)
("no-export-subconfed", CommunityType::NoExportSubconfed)
("LlgrStale", CommunityType::LlgrStale)
("no-reoriginate", CommunityType::NoReOriginate)
("accept-own", CommunityType::AcceptOwn)
("accept-own-nexthop", CommunityType::AcceptOwnNexthop)

Definition at line 20 of file community_type.cc.

◆ toString

const map<CommunityType::WellKnownCommunity, string> toString
static
Initial value:
= boost::assign::map_list_of
(CommunityType::NoAdvertise, "no-advertise")
(CommunityType::NoReOriginate, "no-reoriginate")
(CommunityType::NoExportSubconfed, "no-export-subconfed")
(CommunityType::LlgrStale, "llgr-stale")
(CommunityType::NoLlgr, "no-llgr")
(CommunityType::AcceptOwn, "accept-own")
(CommunityType::AcceptOwnNexthop, "accept-own-nexthop")
(CommunityType::NoExport, "no-export")

Definition at line 31 of file community_type.cc.