OpenSDN source code
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< BgpFamilyAttributesConfigFamilyAttributesList
 

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

◆ AddressFamilyList

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

Definition at line 141 of file bgp_config.h.

◆ FamilyAttributesList

Definition at line 142 of file bgp_config.h.

Member Enumeration Documentation

◆ Type

Enumerator
UNSPECIFIED 
IBGP 
EBGP 

Definition at line 144 of file bgp_config.h.

Constructor & Destructor Documentation

◆ BgpNeighborConfig()

BgpNeighborConfig::BgpNeighborConfig ( )

Definition at line 185 of file bgp_config.cc.

Member Function Documentation

◆ admin_down()

bool BgpNeighborConfig::admin_down ( ) const
inline

Definition at line 181 of file bgp_config.h.

◆ as_override()

bool BgpNeighborConfig::as_override ( ) const
inline

Definition at line 187 of file bgp_config.h.

◆ auth_data()

const AuthenticationData& BgpNeighborConfig::auth_data ( ) const
inline

Definition at line 244 of file bgp_config.h.

◆ AuthKeysToString()

vector< string > BgpNeighborConfig::AuthKeysToString ( ) const

Definition at line 297 of file bgp_config.cc.

Here is the call graph for this function:

◆ AuthKeyTypeToString()

string BgpNeighborConfig::AuthKeyTypeToString ( ) const

Definition at line 292 of file bgp_config.cc.

Here is the call graph for this function:

◆ cluster_id()

uint32_t BgpNeighborConfig::cluster_id ( ) const
inline

Definition at line 195 of file bgp_config.h.

◆ CompareTo()

int BgpNeighborConfig::CompareTo ( const BgpNeighborConfig rhs) const

Definition at line 227 of file bgp_config.cc.

Here is the call graph for this function:

◆ CopyValues()

void BgpNeighborConfig::CopyValues ( const BgpNeighborConfig rhs)

Definition at line 202 of file bgp_config.cc.

◆ DISALLOW_COPY_AND_ASSIGN()

BgpNeighborConfig::DISALLOW_COPY_AND_ASSIGN ( BgpNeighborConfig  )
private

◆ family_attributes_list()

const FamilyAttributesList& BgpNeighborConfig::family_attributes_list ( ) const
inline

Definition at line 253 of file bgp_config.h.

◆ gateway_address()

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

Definition at line 262 of file bgp_config.cc.

◆ GetAddressFamilies()

BgpNeighborConfig::AddressFamilyList BgpNeighborConfig::GetAddressFamilies ( ) const

Definition at line 283 of file bgp_config.cc.

◆ group_name()

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

Definition at line 173 of file bgp_config.h.

◆ hold_time()

int BgpNeighborConfig::hold_time ( ) const
inline

Definition at line 227 of file bgp_config.h.

◆ instance_name()

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

Definition at line 168 of file bgp_config.h.

◆ last_change_at()

uint64_t BgpNeighborConfig::last_change_at ( ) const
inline

Definition at line 262 of file bgp_config.h.

◆ local_as()

uint32_t BgpNeighborConfig::local_as ( ) const
inline

Definition at line 233 of file bgp_config.h.

◆ local_identifier()

uint32_t BgpNeighborConfig::local_identifier ( ) const
inline

Definition at line 236 of file bgp_config.h.

◆ local_identifier_string()

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

Definition at line 240 of file bgp_config.h.

◆ loop_count()

uint8_t BgpNeighborConfig::loop_count ( ) const
inline

Definition at line 230 of file bgp_config.h.

◆ name()

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

Definition at line 162 of file bgp_config.h.

◆ operator!=()

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:

◆ origin_override()

const OriginOverrideConfig& BgpNeighborConfig::origin_override ( ) const
inline

Definition at line 273 of file bgp_config.h.

◆ passive()

bool BgpNeighborConfig::passive ( ) const
inline

Definition at line 184 of file bgp_config.h.

◆ peer_address()

const IpAddress& BgpNeighborConfig::peer_address ( ) const
inline

Definition at line 201 of file bgp_config.h.

◆ peer_address_string()

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

Definition at line 203 of file bgp_config.h.

◆ peer_as()

uint32_t BgpNeighborConfig::peer_as ( ) const
inline

Definition at line 198 of file bgp_config.h.

◆ peer_identifier()

uint32_t BgpNeighborConfig::peer_identifier ( ) const
inline

Definition at line 205 of file bgp_config.h.

◆ peer_identifier_string()

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

Definition at line 209 of file bgp_config.h.

◆ peer_type()

Type BgpNeighborConfig::peer_type ( ) const
inline

Definition at line 178 of file bgp_config.h.

◆ port()

uint16_t BgpNeighborConfig::port ( ) const
inline

Definition at line 216 of file bgp_config.h.

◆ private_as_action()

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

Definition at line 190 of file bgp_config.h.

◆ router_type()

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

Definition at line 222 of file bgp_config.h.

◆ set_admin_down()

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:

◆ set_as_override()

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:

◆ set_cluster_id()

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:

◆ set_family_attributes_list()

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:

◆ set_gateway_address()

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

Definition at line 272 of file bgp_config.cc.

◆ set_group_name()

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:

◆ set_hold_time()

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:

◆ set_instance_name()

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:

◆ set_keydata()

void BgpNeighborConfig::set_keydata ( const AuthenticationData in_auth_data)
inline

Definition at line 247 of file bgp_config.h.

◆ set_last_change_at()

void BgpNeighborConfig::set_last_change_at ( uint64_t  tstamp) const
inline

Definition at line 263 of file bgp_config.h.

◆ set_local_as()

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:

◆ set_local_identifier()

void BgpNeighborConfig::set_local_identifier ( uint32_t  identifier)
inline

Definition at line 237 of file bgp_config.h.

◆ set_loop_count()

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:

◆ set_name()

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:

◆ set_passive()

void BgpNeighborConfig::set_passive ( bool  passive)
inline

Definition at line 185 of file bgp_config.h.

Here is the call graph for this function:

◆ set_peer_address()

void BgpNeighborConfig::set_peer_address ( const IpAddress address)
inline

Definition at line 202 of file bgp_config.h.

◆ set_peer_as()

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:

◆ set_peer_identifier()

void BgpNeighborConfig::set_peer_identifier ( uint32_t  identifier)
inline

Definition at line 206 of file bgp_config.h.

◆ set_peer_type()

void BgpNeighborConfig::set_peer_type ( Type  type)
inline

Definition at line 179 of file bgp_config.h.

◆ set_port()

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:

◆ set_private_as_action()

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:

◆ set_router_type()

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:

◆ set_source_port()

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:

◆ set_uuid()

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:

◆ SetOriginOverride()

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:

◆ source_port()

uint16_t BgpNeighborConfig::source_port ( ) const
inline

Definition at line 219 of file bgp_config.h.

◆ uuid()

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

Definition at line 165 of file bgp_config.h.

Member Data Documentation

◆ address_

IpAddress BgpNeighborConfig::address_
private

Definition at line 292 of file bgp_config.h.

◆ admin_down_

bool BgpNeighborConfig::admin_down_
private

Definition at line 285 of file bgp_config.h.

◆ as_override_

bool BgpNeighborConfig::as_override_
private

Definition at line 287 of file bgp_config.h.

◆ auth_data_

AuthenticationData BgpNeighborConfig::auth_data_
private

Definition at line 303 of file bgp_config.h.

◆ cluster_id_

uint32_t BgpNeighborConfig::cluster_id_
private

Definition at line 289 of file bgp_config.h.

◆ family_attributes_list_

FamilyAttributesList BgpNeighborConfig::family_attributes_list_
private

Definition at line 304 of file bgp_config.h.

◆ group_name_

std::string BgpNeighborConfig::group_name_
private

Definition at line 282 of file bgp_config.h.

◆ hold_time_

int BgpNeighborConfig::hold_time_
private

Definition at line 298 of file bgp_config.h.

◆ identifier_

uint32_t BgpNeighborConfig::identifier_
private

Definition at line 291 of file bgp_config.h.

◆ inet6_gateway_address_

IpAddress BgpNeighborConfig::inet6_gateway_address_
private

Definition at line 294 of file bgp_config.h.

◆ inet_gateway_address_

IpAddress BgpNeighborConfig::inet_gateway_address_
private

Definition at line 293 of file bgp_config.h.

◆ instance_name_

std::string BgpNeighborConfig::instance_name_
private

Definition at line 281 of file bgp_config.h.

◆ last_change_at_

uint64_t BgpNeighborConfig::last_change_at_
mutableprivate

Definition at line 302 of file bgp_config.h.

◆ local_as_

uint32_t BgpNeighborConfig::local_as_
private

Definition at line 300 of file bgp_config.h.

◆ local_identifier_

uint32_t BgpNeighborConfig::local_identifier_
private

Definition at line 301 of file bgp_config.h.

◆ loop_count_

uint8_t BgpNeighborConfig::loop_count_
private

Definition at line 299 of file bgp_config.h.

◆ name_

std::string BgpNeighborConfig::name_
private

Definition at line 279 of file bgp_config.h.

◆ origin_override_

OriginOverrideConfig BgpNeighborConfig::origin_override_
private

Definition at line 305 of file bgp_config.h.

◆ passive_

bool BgpNeighborConfig::passive_
private

Definition at line 286 of file bgp_config.h.

◆ peer_as_

uint32_t BgpNeighborConfig::peer_as_
private

Definition at line 290 of file bgp_config.h.

◆ port_

uint16_t BgpNeighborConfig::port_
private

Definition at line 295 of file bgp_config.h.

◆ private_as_action_

std::string BgpNeighborConfig::private_as_action_
private

Definition at line 288 of file bgp_config.h.

◆ remote_endpoint_

TcpSession::Endpoint BgpNeighborConfig::remote_endpoint_
private

Definition at line 297 of file bgp_config.h.

◆ router_type_

std::string BgpNeighborConfig::router_type_
private

Definition at line 284 of file bgp_config.h.

◆ source_port_

uint16_t BgpNeighborConfig::source_port_
private

Definition at line 296 of file bgp_config.h.

◆ type_

Type BgpNeighborConfig::type_
private

Definition at line 283 of file bgp_config.h.

◆ uuid_

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: