bgp.proto¶
BgpMgrService¶
watch¶
rpc watch(BgpPeerWatchRequest) BgpPeerWatchResponse
Subscription to monitor changes to BGP peers. This request stays active until the client cancels or the server shuts down.
EosSdk reference: eos::bgp_peer_handler (class)
exists¶
rpc exists(BgpPeerExistsRequest) BgpPeerExistsResponse
Queries whether a BGP peer exists or not.
EosSdk reference: eos::bgp_mgr::exists.
peer_state¶
rpc peer_state(BgpPeerStateRequest) BgpPeerStateResponse
Queries the state of a peer session.
EosSdk reference: eos::bgp_mgr::peer_state.
Messages¶
BgpPeerExistsRequest¶
| Name | Value | Description |
|---|---|---|
| peer_key | BgpPeerKey | The key of the BGP peer to query. |
BgpPeerExistsResponse¶
| Name | Value | Description |
|---|---|---|
| exists | bool | True if the BGP peer exists otherwise false. |
BgpPeerStateRequest¶
| Name | Value | Description |
|---|---|---|
| peer_key | BgpPeerKey | The key of the BGP peer to query. |
BgpPeerStateResponse¶
| Name | Value | Description |
|---|---|---|
| peer_state | BgpPeerState | State of the specified peer session. |
BgpPeerWatchRequest¶
| Name | Value | Description |
|---|---|---|
| ack | bool | Set to true if an immediate acknowledgement is desired. |
| oneof overload.all | bool | True if all BGP peers should be watched. |
| oneof overload.peer_key | BgpPeerKey | The peer key of a particular peer to watch. |
BgpPeerWatchResponse¶
| Name | Value | Description |
|---|---|---|
| ack | bool | If true the agent is now actively watching for events. |
| oneof peer_event.on_peer_set | OnBgpPeerSet | The specified BGP peer has been programmed by the BGP agent. |
| oneof peer_event.on_peer_del | OnBgpPeerDel | The specified BGP peer has been deleted from the BGP agent. |
| on_peer_state | OnBgpPeerState | The specified BGP peer changed state. |
OnBgpPeerDel¶
| Name | Value | Description |
|---|---|---|
| peer_key | BgpPeerKey |
OnBgpPeerSet¶
| Name | Value | Description |
|---|---|---|
| peer_key | BgpPeerKey |
OnBgpPeerState¶
| Name | Value | Description |
|---|---|---|
| peer_key | BgpPeerKey | |
| peer_state | BgpPeerState |