getSiteDeviceBgpSummary
POST https://{{host}}/api/v1/sites/:site_id/devices/:device_id/show_bgp_rummary
Get bgp summary from the Device. The output will be available through websocket. As there can be multiple command issued against the same device at the same time and the output all goes through the same websocket stream, session
is introduced for demux.
Parameters
Name | Type | Description |
---|---|---|
node | string | (Optional) node0 / node1 for HA |
vrf | string | (Optional) VRF name |
subscribe to Device Command outputs
{
"subscribe": "/sites/:site_id/devices/:device_id/cmd"
}
Example output from ws stream
ue 2024-04-23 16:36:06 UTC
Retrieving bgp entries...
BGP table version is 354, local router ID is 10.224.8.16, vrf id 0
Default local pref 100, local AS 65000
Status codes: s suppressed, d damped, h history, * valid, > best, = multipath,
i internal, r RIB-failure, S Stale, R Removed
Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
*> 161.161.161.0/24
Request Body
{"node"=>"node0"}
RESPONSES
status: OK
{"session":"session_id"}