diff options
| author | Sindhu Parvathi Gopinathan <sgopinathan@nvidia.com> | 2023-04-04 05:38:28 -0700 |
|---|---|---|
| committer | Chirag Shah <chirag@nvidia.com> | 2023-04-04 19:41:25 -0700 |
| commit | 61f3a6c353dee5fbbdf178e3b234dc4465ae99bc (patch) | |
| tree | 8e8b1b74e212b513b868f3b24f01b0fd15eb9f9c /lib/link_state.c | |
| parent | 92c4494ce5ef69ce436ed06fb03c352987dede0f (diff) | |
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>
Diffstat (limited to 'lib/link_state.c')
0 files changed, 0 insertions, 0 deletions
