]> git.puffer.fish Git - mirror/frr.git/commit
zebra:return empty dict when evpn is disabled 13214/head
authorSindhu Parvathi Gopinathan <sgopinathan@nvidia.com>
Tue, 4 Apr 2023 12:38:28 +0000 (05:38 -0700)
committerChirag Shah <chirag@nvidia.com>
Wed, 5 Apr 2023 02:41:25 +0000 (19:41 -0700)
commit61f3a6c353dee5fbbdf178e3b234dc4465ae99bc
tree8e8b1b74e212b513b868f3b24f01b0fd15eb9f9c
parent92c4494ce5ef69ce436ed06fb03c352987dede0f
zebra:return empty dict when evpn is disabled

"show evpn json" returns nothing when evpn is disabled.

Code has been fixed to return {} when evpn is disabled or no entry
available.

Before Fix:-
```
cumulus@r2:mgmt:~$ sudo vtysh -c "show evpn json"
cumulus@r2:mgmt:~$
```

After Fix:-
```
cumulus@r1:mgmt:~$ sudo vtysh -c "show evpn json"
{
}
cumulus@r1:mgmt:~$
```

Ticket:#3417955

Issue:3417955

Testing: UT done

Signed-off-by: Chirag Shah <chirag@nvidia.com>
Signed-off-by: Sindhu Parvathi Gopinathan <sgopinathan@nvidia.com>
zebra/zebra_vxlan.c