-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vtysh, zebra: fix malformed json output for multiple vrfs in command …
…show ip route vrf all json Command 'show ip route vrf <vrf_name> json' returns a valid json object, however if instead of <vrf_name> we specify 'all', we get an invalid json object, like: {//vrf1 routes}{//vrf2 routes}{vrf3 routes} After the fix we get: {"vrf1":{//vrf1 routes},"vrf2:{//vrf2 routes},"vrf3":{//vrf3 routes}} Which is a valid json object, that can be parsed effectively using built-in modules. The rest of the commands remain unaffected and behave the same. Signed-off-by: Piotr Suchy <[email protected]>
- Loading branch information
1 parent
d5f17cd
commit a8e9a31
Showing
1 changed file
with
60 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters