diff options
| author | Sindhu Parvathi Gopinathan <sgopinathan@nvidia.com> | 2024-08-26 00:02:46 -0700 |
|---|---|---|
| committer | Chirag Shah <chirag@nvidia.com> | 2024-09-02 17:22:01 -0700 |
| commit | 40c0b891e38c4ee020470f80d1f5c1519cf8b5aa (patch) | |
| tree | 92b4e261be0dc8dd7af6cae024cb6d212bb3b68d /tests/topotests/ospf_basic_functionality/test_ospf_authentication.py | |
| parent | 745cd3e6bf298da16379088e138e33aeb0ee8f52 (diff) | |
bgpd: fix proper json format for unicast statistics for non exists vrf
Ticket: #4060069
show bgp vrf afi unicast statistics json output is not return in json
format for non exists vrf.
Fix:
Json output is formatted for non exists vrf cases.
Command supported:
```
show bgp vrf <VRFNAME> ipv4/ipv6 unicast statistics json
show bgp vrf <VRFNAME> l2vpn evpn statistics json
```
Before Fix:
```
leaf11#
leaf11# show bgp vrf test ipv4 unicast statistics json
View/Vrf test is unknown
leaf11#
leaf11#
leaf11# show bgp vrf test ipv6 unicast statistics json
View/Vrf test is unknown
leaf11#
leaf11#
leaf11# show bgp vrf default1 l2vpn evpn statistics json
View/Vrf default1 is unknown
leaf11#
```
After Fix:
```
leaf11#
leaf11# show bgp vrf test ipv4 unicast statistics json
{
"warning":"View/Vrf is unknown"
}
leaf11#
leaf11#
leaf11# show bgp vrf test ipv6 unicast statistics json
{
"warning":"View/Vrf is unknown"
}
leaf11#
leaf11# show bgp vrf default1 l2vpn evpn statistics json
{
"warning":"View/Vrf is unknown"
}
leaf11#
```
Ticket: #4060069
Signed-off-by: Sindhu Parvathi Gopinathan's <sgopinathan@nvidia.com>
Diffstat (limited to 'tests/topotests/ospf_basic_functionality/test_ospf_authentication.py')
0 files changed, 0 insertions, 0 deletions
