Commit 71c54fa
bgpd: correction in json output structure for no data case
Problem:
The VTYSH JSON output is not in the proper format when bgp l2vpn-evpn
information is missing or not populated for a given vni-id. This results
in a malformed JSON structure, which causes a parsing error.
Fix:
Corrected the JSON output structure generated during command execution
to properly handle cases where no bgp l2vpn-evpn data is available for a
given vni-id.
Before Fix:
```
{}
{
}
```
After Fix:
```
{
}
```
Signed-off-by: Sindhu Parvathi Gopinathan's <sgopinathan@nvidia.com>
(cherry picked from commit a8f1785)1 parent f467e95 commit 71c54fa
1 file changed
+3
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3331 | 3331 | | |
3332 | 3332 | | |
3333 | 3333 | | |
3334 | | - | |
3335 | | - | |
3336 | | - | |
3337 | | - | |
3338 | | - | |
3339 | | - | |
3340 | | - | |
| 3334 | + | |
| 3335 | + | |
| 3336 | + | |
3341 | 3337 | | |
3342 | 3338 | | |
3343 | 3339 | | |
| |||
0 commit comments