ns-3 Direct Code Execution
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ns3::BgpConfig Class Reference
+ Collaboration diagram for ns3::BgpConfig:

Public Member Functions

 BgpConfig ()
 ~BgpConfig ()
void AddNeighbor (std::string n, uint32_t asn)
void addNetwork (std::string n)
void defaultOriginate ()
uint32_t GetAsn ()
std::string GetFilename () const
TypeId GetInstanceTypeId (void) const
virtual void Print (std::ostream &os) const
void SetAsn (uint32_t lasn)
void SetFilename (const std::string &filename)

Static Public Member Functions

static TypeId GetTypeId (void)

Private Attributes

uint32_t asn
bool isDefaultOriginate
std::string m_filename
std::map< std::string, uint32_t > * neighbor_asn
std::vector< std::string > * neighbors
std::vector< std::string > * networks
std::string router_id

Static Private Attributes

static int index

Detailed Description

Definition at line 190 of file quagga-helper.cc.

Constructor & Destructor Documentation

ns3::BgpConfig::BgpConfig ( )
inline

Definition at line 203 of file quagga-helper.cc.

References isDefaultOriginate, neighbor_asn, neighbors, and networks.

ns3::BgpConfig::~BgpConfig ( )
inline

Definition at line 210 of file quagga-helper.cc.

References neighbor_asn, neighbors, and networks.

Member Function Documentation

void ns3::BgpConfig::AddNeighbor ( std::string  n,
uint32_t  asn 
)
inline

Definition at line 246 of file quagga-helper.cc.

References neighbor_asn, and neighbors.

void ns3::BgpConfig::addNetwork ( std::string  n)
inline

Definition at line 251 of file quagga-helper.cc.

References networks.

void ns3::BgpConfig::defaultOriginate ( )
inline

Definition at line 255 of file quagga-helper.cc.

References isDefaultOriginate.

uint32_t ns3::BgpConfig::GetAsn ( )
inline

Definition at line 242 of file quagga-helper.cc.

References asn.

Referenced by ns3::QuaggaHelper::GetAsn().

+ Here is the caller graph for this function:

std::string ns3::BgpConfig::GetFilename ( ) const
inline

Definition at line 267 of file quagga-helper.cc.

References m_filename.

TypeId ns3::BgpConfig::GetInstanceTypeId ( void  ) const
inline

Definition at line 226 of file quagga-helper.cc.

References GetTypeId().

+ Here is the call graph for this function:

static TypeId ns3::BgpConfig::GetTypeId ( void  )
inlinestatic

Definition at line 217 of file quagga-helper.cc.

Referenced by GetInstanceTypeId().

+ Here is the caller graph for this function:

virtual void ns3::BgpConfig::Print ( std::ostream &  os) const
inlinevirtual

Definition at line 273 of file quagga-helper.cc.

References asn, isDefaultOriginate, neighbors, networks, and router_id.

void ns3::BgpConfig::SetAsn ( uint32_t  lasn)
inline

Definition at line 232 of file quagga-helper.cc.

References asn, and router_id.

Referenced by ns3::QuaggaHelper::BgpAddNeighbor(), and ns3::QuaggaHelper::EnableBgp().

+ Here is the caller graph for this function:

void ns3::BgpConfig::SetFilename ( const std::string &  filename)
inline

Definition at line 261 of file quagga-helper.cc.

References m_filename.

Referenced by ns3::QuaggaHelper::GenerateConfigBgp().

+ Here is the caller graph for this function:

Member Data Documentation

uint32_t ns3::BgpConfig::asn
private

Definition at line 194 of file quagga-helper.cc.

Referenced by GetAsn(), Print(), and SetAsn().

int ns3::BgpConfig::index
staticprivate

Definition at line 193 of file quagga-helper.cc.

bool ns3::BgpConfig::isDefaultOriginate
private

Definition at line 199 of file quagga-helper.cc.

Referenced by BgpConfig(), defaultOriginate(), and Print().

std::string ns3::BgpConfig::m_filename
private

Definition at line 200 of file quagga-helper.cc.

Referenced by GetFilename(), and SetFilename().

std::map<std::string, uint32_t>* ns3::BgpConfig::neighbor_asn
private

Definition at line 197 of file quagga-helper.cc.

Referenced by AddNeighbor(), BgpConfig(), and ~BgpConfig().

std::vector<std::string>* ns3::BgpConfig::neighbors
private

Definition at line 196 of file quagga-helper.cc.

Referenced by AddNeighbor(), BgpConfig(), Print(), and ~BgpConfig().

std::vector<std::string>* ns3::BgpConfig::networks
private

Definition at line 198 of file quagga-helper.cc.

Referenced by addNetwork(), BgpConfig(), Print(), and ~BgpConfig().

std::string ns3::BgpConfig::router_id
private

Definition at line 195 of file quagga-helper.cc.

Referenced by Print(), and SetAsn().


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