]>
git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Show best path reason in JSON output for `show bgp` command
exit1-debian-9# show ip bgp json
{
"vrfId": 0,
"vrfName": "default",
"tableVersion": 2,
"routerId": "192.168.255.1",
"defaultLocPrf": 100,
"localAS": 65000,
"routes": { "172.16.255.254/32": [
{
"valid":true,
"bestpath":true,
"selectionReason":"First path received",
"pathFrom":"external",
"prefix":"172.16.255.254",
"prefixLen":32,
"network":"172.16.255.254\/32",
"metric":0,
"weight":0,
"peerId":"192.168.255.2",
"path":"65001",
"origin":"incomplete",
"nexthops":[
{
"ip":"192.168.255.2",
"hostname":"exit1-debian-9",
"afi":"ipv4",
"used":true
}
]
}
],"192.168.255.0/24": [
{
"valid":true,
"bestpath":true,
"selectionReason":"First path received",
"pathFrom":"external",
"prefix":"192.168.255.0",
"prefixLen":24,
"network":"192.168.255.0\/24",
"metric":0,
"weight":0,
"peerId":"192.168.255.2",
"path":"65001",
"origin":"incomplete",
"nexthops":[
{
"ip":"192.168.255.2",
"hostname":"exit1-debian-9",
"afi":"ipv4",
"used":true
}
]
}
] } }
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>