]> git.proxmox.com Git - mirror_frr.git/commit
zebra: add json support when "show zebra mpls" returns nothing
authorPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 3 Mar 2023 12:21:00 +0000 (13:21 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 9 Mar 2023 08:44:14 +0000 (09:44 +0100)
commit060c7d7073f233d570961a917d64d5aa8d7229a1
tree85b0338626ceb7d2181d264645874eae3df9eb99
parente119fbf8517e3a6ca3912de90eda2d40cb3f188e
zebra: add json support when "show zebra mpls" returns nothing

The "show zebra mpls .. json" vty command may return empty information
in case the MPLS database is empty or a given label entry is not
available. When those errors occur, add the braces to return a
valid json format.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
zebra/zebra_mpls.c