BGP management module.
Border Gateway Protocol (BGP) is a standardized exterior gateway routing protocol designed to exchange routing and reachability information among autonomous systems (AS). In EOS, BGP follows RFC4271.
This module provides APIs to query BGP information including BGP peer state.
An example of the API usage is in examples/BgpAgent.cpp
The BGP peer handler.
This class provides handler APIs to react to a BGP peer’s session state change.
Public Functions
Register to receive notifications when any peer changes state.
Register to receive notifications when the specified peer changes state.
Called when BGP peer state change.
Called when a BGP peer is created.
Called when a BGP peer is deleted.
A manager of BGP configurations.
Public Functions
Test for existence of a BGP peer.
Returns the state of a peer session.
If the given peer does not have a valid status or it didn’t match any peers in the system, this would returns PEER_UNKNOWN;
Protected Functions
Private Members
Friends
Typedefs
Enums
The operational state of a BGP peer session.
Values:
The BGP peer key which consists of the peer address and the VRF itresides in.
Public Functions
Getter for ‘vrf_name’: VRF name.
Setter for ‘vrf_name’.
Getter for ‘peer_addr’: BGP peer address.
Setter for ‘peer_addr’.
The hash function for type bgp_peer_key_t.
Returns a string representation of the current object’s values.
Friends
A utility stream operator that adds a string representation of bgp_peer_key_t to the ostream.