OpenSDN source code
|
#include <bgp_config.h>
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 IpAddress & | peer_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 IpAddress & | gateway_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 AuthenticationData & | auth_data () const |
void | set_keydata (const AuthenticationData &in_auth_data) |
AddressFamilyList | GetAddressFamilies () const |
const FamilyAttributesList & | family_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 OriginOverrideConfig & | origin_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_ |
Definition at line 139 of file bgp_config.h.
typedef std::vector<std::string> BgpNeighborConfig::AddressFamilyList |
Definition at line 141 of file bgp_config.h.
typedef std::vector<BgpFamilyAttributesConfig> BgpNeighborConfig::FamilyAttributesList |
Definition at line 142 of file bgp_config.h.
Enumerator | |
---|---|
UNSPECIFIED | |
IBGP | |
EBGP |
Definition at line 144 of file bgp_config.h.
BgpNeighborConfig::BgpNeighborConfig | ( | ) |
Definition at line 185 of file bgp_config.cc.
|
inline |
Definition at line 181 of file bgp_config.h.
|
inline |
Definition at line 187 of file bgp_config.h.
|
inline |
Definition at line 244 of file bgp_config.h.
vector< string > BgpNeighborConfig::AuthKeysToString | ( | ) | const |
string BgpNeighborConfig::AuthKeyTypeToString | ( | ) | const |
|
inline |
Definition at line 195 of file bgp_config.h.
int BgpNeighborConfig::CompareTo | ( | const BgpNeighborConfig & | rhs | ) | const |
void BgpNeighborConfig::CopyValues | ( | const BgpNeighborConfig & | rhs | ) |
Definition at line 202 of file bgp_config.cc.
|
private |
|
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.
|
inline |
Definition at line 173 of file bgp_config.h.
|
inline |
Definition at line 227 of file bgp_config.h.
|
inline |
Definition at line 168 of file bgp_config.h.
|
inline |
Definition at line 262 of file bgp_config.h.
|
inline |
Definition at line 233 of file bgp_config.h.
|
inline |
Definition at line 236 of file bgp_config.h.
|
inline |
Definition at line 240 of file bgp_config.h.
|
inline |
Definition at line 230 of file bgp_config.h.
|
inline |
Definition at line 162 of file bgp_config.h.
|
inline |
|
inline |
Definition at line 273 of file bgp_config.h.
|
inline |
Definition at line 184 of file bgp_config.h.
|
inline |
Definition at line 201 of file bgp_config.h.
|
inline |
Definition at line 203 of file bgp_config.h.
|
inline |
Definition at line 198 of file bgp_config.h.
|
inline |
Definition at line 205 of file bgp_config.h.
|
inline |
Definition at line 209 of file bgp_config.h.
|
inline |
Definition at line 178 of file bgp_config.h.
|
inline |
Definition at line 216 of file bgp_config.h.
|
inline |
Definition at line 190 of file bgp_config.h.
|
inline |
Definition at line 222 of file bgp_config.h.
|
inline |
|
inline |
|
inline |
|
inline |
void BgpNeighborConfig::set_gateway_address | ( | Address::Family | family, |
const IpAddress & | address | ||
) |
Definition at line 272 of file bgp_config.cc.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 247 of file bgp_config.h.
|
inline |
Definition at line 263 of file bgp_config.h.
|
inline |
|
inline |
Definition at line 237 of file bgp_config.h.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 202 of file bgp_config.h.
|
inline |
|
inline |
Definition at line 206 of file bgp_config.h.
|
inline |
Definition at line 179 of file bgp_config.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void BgpNeighborConfig::SetOriginOverride | ( | bool | origin_override, |
std::string | origin | ||
) |
|
inline |
Definition at line 219 of file bgp_config.h.
|
inline |
Definition at line 165 of file bgp_config.h.
|
private |
Definition at line 292 of file bgp_config.h.
|
private |
Definition at line 285 of file bgp_config.h.
|
private |
Definition at line 287 of file bgp_config.h.
|
private |
Definition at line 303 of file bgp_config.h.
|
private |
Definition at line 289 of file bgp_config.h.
|
private |
Definition at line 304 of file bgp_config.h.
|
private |
Definition at line 282 of file bgp_config.h.
|
private |
Definition at line 298 of file bgp_config.h.
|
private |
Definition at line 291 of file bgp_config.h.
|
private |
Definition at line 294 of file bgp_config.h.
|
private |
Definition at line 293 of file bgp_config.h.
|
private |
Definition at line 281 of file bgp_config.h.
|
mutableprivate |
Definition at line 302 of file bgp_config.h.
|
private |
Definition at line 300 of file bgp_config.h.
|
private |
Definition at line 301 of file bgp_config.h.
|
private |
Definition at line 299 of file bgp_config.h.
|
private |
Definition at line 279 of file bgp_config.h.
|
private |
Definition at line 305 of file bgp_config.h.
|
private |
Definition at line 286 of file bgp_config.h.
|
private |
Definition at line 290 of file bgp_config.h.
|
private |
Definition at line 295 of file bgp_config.h.
|
private |
Definition at line 288 of file bgp_config.h.
|
private |
Definition at line 297 of file bgp_config.h.
|
private |
Definition at line 284 of file bgp_config.h.
|
private |
Definition at line 296 of file bgp_config.h.
|
private |
Definition at line 283 of file bgp_config.h.
|
private |
Definition at line 280 of file bgp_config.h.