OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
BgpNeighborConfig Class Reference

#include <bgp_config.h>

Collaboration diagram for BgpNeighborConfig:

Classes

struct  OriginOverrideConfig
 

Public Types

enum  Type { UNSPECIFIED, IBGP, EBGP }
 
typedef std::vector< std::string > AddressFamilyList
 
typedef std::vector
< BgpFamilyAttributesConfig
FamilyAttributesList
 

Public Member Functions

 BgpNeighborConfig ()
 
void CopyValues (const BgpNeighborConfig &rhs)
 
const std::string & name () const
 
void set_name (const std::string &name)
 
const std::string & uuid () const
 
void set_uuid (const std::string &uuid)
 
const std::string & instance_name () const
 
void set_instance_name (const std::string &instance_name)
 
const std::string & group_name () const
 
void set_group_name (const std::string &group_name)
 
Type peer_type () const
 
void set_peer_type (Type type)
 
bool admin_down () const
 
void set_admin_down (bool admin_down)
 
bool passive () const
 
void set_passive (bool passive)
 
bool as_override () const
 
void set_as_override (bool as_override)
 
std::string private_as_action () const
 
void set_private_as_action (const std::string &private_as_action)
 
uint32_t cluster_id () const
 
void set_cluster_id (uint32_t cluster_id)
 
uint32_t peer_as () const
 
void set_peer_as (uint32_t peer_as)
 
const IpAddresspeer_address () const
 
void set_peer_address (const IpAddress &address)
 
std::string peer_address_string () const
 
uint32_t peer_identifier () const
 
void set_peer_identifier (uint32_t identifier)
 
std::string peer_identifier_string () const
 
const IpAddressgateway_address (Address::Family family) const
 
void set_gateway_address (Address::Family family, const IpAddress &address)
 
uint16_t port () const
 
void set_port (uint16_t port)
 
uint16_t source_port () const
 
void set_source_port (uint16_t source_port)
 
std::string router_type () const
 
void set_router_type (const std::string &router_type)
 
int hold_time () const
 
void set_hold_time (int hold_time)
 
uint8_t loop_count () const
 
void set_loop_count (uint8_t loop_count)
 
uint32_t local_as () const
 
void set_local_as (uint32_t local_as)
 
uint32_t local_identifier () const
 
void set_local_identifier (uint32_t identifier)
 
std::string local_identifier_string () const
 
const AuthenticationDataauth_data () const
 
void set_keydata (const AuthenticationData &in_auth_data)
 
AddressFamilyList GetAddressFamilies () const
 
const FamilyAttributesListfamily_attributes_list () const
 
void set_family_attributes_list (const FamilyAttributesList &family_attributes_list)
 
uint64_t last_change_at () const
 
void set_last_change_at (uint64_t tstamp) const
 
std::string AuthKeyTypeToString () const
 
std::vector< std::string > AuthKeysToString () const
 
int CompareTo (const BgpNeighborConfig &rhs) const
 
bool operator!= (const BgpNeighborConfig &rhs) const
 
const OriginOverrideConfigorigin_override () const
 
void SetOriginOverride (bool origin_override, std::string origin)
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (BgpNeighborConfig)
 

Private Attributes

std::string name_
 
std::string uuid_
 
std::string instance_name_
 
std::string group_name_
 
Type type_
 
std::string router_type_
 
bool admin_down_
 
bool passive_
 
bool as_override_
 
std::string private_as_action_
 
uint32_t cluster_id_
 
uint32_t peer_as_
 
uint32_t identifier_
 
IpAddress address_
 
IpAddress inet_gateway_address_
 
IpAddress inet6_gateway_address_
 
uint16_t port_
 
uint16_t source_port_
 
TcpSession::Endpoint remote_endpoint_
 
int hold_time_
 
uint8_t loop_count_
 
uint32_t local_as_
 
uint32_t local_identifier_
 
uint64_t last_change_at_
 
AuthenticationData auth_data_
 
FamilyAttributesList family_attributes_list_
 
OriginOverrideConfig origin_override_
 

Detailed Description

Definition at line 139 of file bgp_config.h.

Member Typedef Documentation

typedef std::vector<std::string> BgpNeighborConfig::AddressFamilyList

Definition at line 141 of file bgp_config.h.

Definition at line 142 of file bgp_config.h.

Member Enumeration Documentation

Enumerator
UNSPECIFIED 
IBGP 
EBGP 

Definition at line 144 of file bgp_config.h.

Constructor & Destructor Documentation

BgpNeighborConfig::BgpNeighborConfig ( )

Definition at line 185 of file bgp_config.cc.

Member Function Documentation

bool BgpNeighborConfig::admin_down ( ) const
inline

Definition at line 181 of file bgp_config.h.

bool BgpNeighborConfig::as_override ( ) const
inline

Definition at line 187 of file bgp_config.h.

const AuthenticationData& BgpNeighborConfig::auth_data ( ) const
inline

Definition at line 244 of file bgp_config.h.

vector< string > BgpNeighborConfig::AuthKeysToString ( ) const

Definition at line 297 of file bgp_config.cc.

Here is the call graph for this function:

string BgpNeighborConfig::AuthKeyTypeToString ( ) const

Definition at line 292 of file bgp_config.cc.

Here is the call graph for this function:

uint32_t BgpNeighborConfig::cluster_id ( ) const
inline

Definition at line 195 of file bgp_config.h.

int BgpNeighborConfig::CompareTo ( const BgpNeighborConfig rhs) const

Definition at line 227 of file bgp_config.cc.

Here is the call graph for this function:

void BgpNeighborConfig::CopyValues ( const BgpNeighborConfig rhs)

Definition at line 202 of file bgp_config.cc.

BgpNeighborConfig::DISALLOW_COPY_AND_ASSIGN ( BgpNeighborConfig  )
private
const FamilyAttributesList& BgpNeighborConfig::family_attributes_list ( ) const
inline

Definition at line 253 of file bgp_config.h.

const IpAddress & BgpNeighborConfig::gateway_address ( Address::Family  family) const

Definition at line 262 of file bgp_config.cc.

BgpNeighborConfig::AddressFamilyList BgpNeighborConfig::GetAddressFamilies ( ) const

Definition at line 283 of file bgp_config.cc.

const std::string& BgpNeighborConfig::group_name ( ) const
inline

Definition at line 173 of file bgp_config.h.

int BgpNeighborConfig::hold_time ( ) const
inline

Definition at line 227 of file bgp_config.h.

const std::string& BgpNeighborConfig::instance_name ( ) const
inline

Definition at line 168 of file bgp_config.h.

uint64_t BgpNeighborConfig::last_change_at ( ) const
inline

Definition at line 262 of file bgp_config.h.

uint32_t BgpNeighborConfig::local_as ( ) const
inline

Definition at line 233 of file bgp_config.h.

uint32_t BgpNeighborConfig::local_identifier ( ) const
inline

Definition at line 236 of file bgp_config.h.

std::string BgpNeighborConfig::local_identifier_string ( ) const
inline

Definition at line 240 of file bgp_config.h.

uint8_t BgpNeighborConfig::loop_count ( ) const
inline

Definition at line 230 of file bgp_config.h.

const std::string& BgpNeighborConfig::name ( ) const
inline

Definition at line 162 of file bgp_config.h.

bool BgpNeighborConfig::operator!= ( const BgpNeighborConfig rhs) const
inline

Definition at line 269 of file bgp_config.h.

Here is the call graph for this function:

const OriginOverrideConfig& BgpNeighborConfig::origin_override ( ) const
inline

Definition at line 273 of file bgp_config.h.

bool BgpNeighborConfig::passive ( ) const
inline

Definition at line 184 of file bgp_config.h.

const IpAddress& BgpNeighborConfig::peer_address ( ) const
inline

Definition at line 201 of file bgp_config.h.

std::string BgpNeighborConfig::peer_address_string ( ) const
inline

Definition at line 203 of file bgp_config.h.

uint32_t BgpNeighborConfig::peer_as ( ) const
inline

Definition at line 198 of file bgp_config.h.

uint32_t BgpNeighborConfig::peer_identifier ( ) const
inline

Definition at line 205 of file bgp_config.h.

std::string BgpNeighborConfig::peer_identifier_string ( ) const
inline

Definition at line 209 of file bgp_config.h.

Type BgpNeighborConfig::peer_type ( ) const
inline

Definition at line 178 of file bgp_config.h.

uint16_t BgpNeighborConfig::port ( ) const
inline

Definition at line 216 of file bgp_config.h.

std::string BgpNeighborConfig::private_as_action ( ) const
inline

Definition at line 190 of file bgp_config.h.

std::string BgpNeighborConfig::router_type ( ) const
inline

Definition at line 222 of file bgp_config.h.

void BgpNeighborConfig::set_admin_down ( bool  admin_down)
inline

Definition at line 182 of file bgp_config.h.

Here is the call graph for this function:

void BgpNeighborConfig::set_as_override ( bool  as_override)
inline

Definition at line 188 of file bgp_config.h.

Here is the call graph for this function:

void BgpNeighborConfig::set_cluster_id ( uint32_t  cluster_id)
inline

Definition at line 196 of file bgp_config.h.

Here is the call graph for this function:

void BgpNeighborConfig::set_family_attributes_list ( const FamilyAttributesList family_attributes_list)
inline

Definition at line 257 of file bgp_config.h.

Here is the call graph for this function:

void BgpNeighborConfig::set_gateway_address ( Address::Family  family,
const IpAddress address 
)

Definition at line 272 of file bgp_config.cc.

void BgpNeighborConfig::set_group_name ( const std::string &  group_name)
inline

Definition at line 174 of file bgp_config.h.

Here is the call graph for this function:

void BgpNeighborConfig::set_hold_time ( int  hold_time)
inline

Definition at line 228 of file bgp_config.h.

Here is the call graph for this function:

void BgpNeighborConfig::set_instance_name ( const std::string &  instance_name)
inline

Definition at line 169 of file bgp_config.h.

Here is the call graph for this function:

void BgpNeighborConfig::set_keydata ( const AuthenticationData in_auth_data)
inline

Definition at line 247 of file bgp_config.h.

void BgpNeighborConfig::set_last_change_at ( uint64_t  tstamp) const
inline

Definition at line 263 of file bgp_config.h.

void BgpNeighborConfig::set_local_as ( uint32_t  local_as)
inline

Definition at line 234 of file bgp_config.h.

Here is the call graph for this function:

void BgpNeighborConfig::set_local_identifier ( uint32_t  identifier)
inline

Definition at line 237 of file bgp_config.h.

void BgpNeighborConfig::set_loop_count ( uint8_t  loop_count)
inline

Definition at line 231 of file bgp_config.h.

Here is the call graph for this function:

void BgpNeighborConfig::set_name ( const std::string &  name)
inline

Definition at line 163 of file bgp_config.h.

Here is the call graph for this function:

void BgpNeighborConfig::set_passive ( bool  passive)
inline

Definition at line 185 of file bgp_config.h.

Here is the call graph for this function:

void BgpNeighborConfig::set_peer_address ( const IpAddress address)
inline

Definition at line 202 of file bgp_config.h.

void BgpNeighborConfig::set_peer_as ( uint32_t  peer_as)
inline

Definition at line 199 of file bgp_config.h.

Here is the call graph for this function:

void BgpNeighborConfig::set_peer_identifier ( uint32_t  identifier)
inline

Definition at line 206 of file bgp_config.h.

void BgpNeighborConfig::set_peer_type ( Type  type)
inline

Definition at line 179 of file bgp_config.h.

void BgpNeighborConfig::set_port ( uint16_t  port)
inline

Definition at line 217 of file bgp_config.h.

Here is the call graph for this function:

void BgpNeighborConfig::set_private_as_action ( const std::string &  private_as_action)
inline

Definition at line 191 of file bgp_config.h.

Here is the call graph for this function:

void BgpNeighborConfig::set_router_type ( const std::string &  router_type)
inline

Definition at line 223 of file bgp_config.h.

Here is the call graph for this function:

void BgpNeighborConfig::set_source_port ( uint16_t  source_port)
inline

Definition at line 220 of file bgp_config.h.

Here is the call graph for this function:

void BgpNeighborConfig::set_uuid ( const std::string &  uuid)
inline

Definition at line 166 of file bgp_config.h.

Here is the call graph for this function:

void BgpNeighborConfig::SetOriginOverride ( bool  origin_override,
std::string  origin 
)

Definition at line 256 of file bgp_config.cc.

Here is the call graph for this function:

uint16_t BgpNeighborConfig::source_port ( ) const
inline

Definition at line 219 of file bgp_config.h.

const std::string& BgpNeighborConfig::uuid ( ) const
inline

Definition at line 165 of file bgp_config.h.

Member Data Documentation

IpAddress BgpNeighborConfig::address_
private

Definition at line 292 of file bgp_config.h.

bool BgpNeighborConfig::admin_down_
private

Definition at line 285 of file bgp_config.h.

bool BgpNeighborConfig::as_override_
private

Definition at line 287 of file bgp_config.h.

AuthenticationData BgpNeighborConfig::auth_data_
private

Definition at line 303 of file bgp_config.h.

uint32_t BgpNeighborConfig::cluster_id_
private

Definition at line 289 of file bgp_config.h.

FamilyAttributesList BgpNeighborConfig::family_attributes_list_
private

Definition at line 304 of file bgp_config.h.

std::string BgpNeighborConfig::group_name_
private

Definition at line 282 of file bgp_config.h.

int BgpNeighborConfig::hold_time_
private

Definition at line 298 of file bgp_config.h.

uint32_t BgpNeighborConfig::identifier_
private

Definition at line 291 of file bgp_config.h.

IpAddress BgpNeighborConfig::inet6_gateway_address_
private

Definition at line 294 of file bgp_config.h.

IpAddress BgpNeighborConfig::inet_gateway_address_
private

Definition at line 293 of file bgp_config.h.

std::string BgpNeighborConfig::instance_name_
private

Definition at line 281 of file bgp_config.h.

uint64_t BgpNeighborConfig::last_change_at_
mutableprivate

Definition at line 302 of file bgp_config.h.

uint32_t BgpNeighborConfig::local_as_
private

Definition at line 300 of file bgp_config.h.

uint32_t BgpNeighborConfig::local_identifier_
private

Definition at line 301 of file bgp_config.h.

uint8_t BgpNeighborConfig::loop_count_
private

Definition at line 299 of file bgp_config.h.

std::string BgpNeighborConfig::name_
private

Definition at line 279 of file bgp_config.h.

OriginOverrideConfig BgpNeighborConfig::origin_override_
private

Definition at line 305 of file bgp_config.h.

bool BgpNeighborConfig::passive_
private

Definition at line 286 of file bgp_config.h.

uint32_t BgpNeighborConfig::peer_as_
private

Definition at line 290 of file bgp_config.h.

uint16_t BgpNeighborConfig::port_
private

Definition at line 295 of file bgp_config.h.

std::string BgpNeighborConfig::private_as_action_
private

Definition at line 288 of file bgp_config.h.

TcpSession::Endpoint BgpNeighborConfig::remote_endpoint_
private

Definition at line 297 of file bgp_config.h.

std::string BgpNeighborConfig::router_type_
private

Definition at line 284 of file bgp_config.h.

uint16_t BgpNeighborConfig::source_port_
private

Definition at line 296 of file bgp_config.h.

Type BgpNeighborConfig::type_
private

Definition at line 283 of file bgp_config.h.

std::string BgpNeighborConfig::uuid_
private

Definition at line 280 of file bgp_config.h.


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