diff options
| author | Lakshman Krishnamoorthy <lkrishnamoor@vmware.com> | 2019-05-11 09:47:10 -0700 |
|---|---|---|
| committer | Lakshman Krishnamoorthy <lkrishnamoor@vmware.com> | 2019-05-11 09:47:10 -0700 |
| commit | 14f51ebaacf468c847e9ae90bddf020a2684fa23 (patch) | |
| tree | e497e11c9184fdfc2968e9563973351791d50a82 /lib/json.c | |
| parent | 764252d0ab48563eb171e09ce9d53e249e6e8a27 (diff) | |
bgpd: json cli output for bgp evpn overlay
This diff provides implementation for the cli:
"show bgp l2vpn evpn all overlay json"
Sample output after this change:
leaf-1# sh bgp l2vpn evpn all overlay json
{
"bgpTableVersion":1,
"bgpLocalRouterId":"10.100.0.1",
"defaultLocPrf":100,
"localAS":65000,
"10.101.1.4:5":{
"rd":"10.101.1.4:5",
"[5]:[0]:[32]:[101.101.101.101]":{
"prefix":"[5]:[0]:[32]:[101.101.101.101]",
"prefixLen":288,
"paths":[
{
"valid":true,
"bestpath":true,
"pathFrom":"external",
"nexthop":{
"ip":"10.100.0.2",
"afi":"ipv4"
},
"overlay":{
"esi":"00:00:00:00:00:00:00:00:00:00",
"gw":"0.0.0.0",
"rmac":"ea:47:79:75:22:1b"
}
},
{
"valid":true,
"pathFrom":"external",
"nexthop":{
"ip":"10.100.0.2",
"afi":"ipv4"
},
"overlay":{
"esi":"00:00:00:00:00:00:00:00:00:00",
"gw":"0.0.0.0",
"rmac":"ea:47:79:75:22:1b"
}
}
]
}
},
...
...
}
Signed-off-by: Lakshman Krishnamoorthy <lkrishnamoor@vmware.com>
Diffstat (limited to 'lib/json.c')
0 files changed, 0 insertions, 0 deletions
