iproute2/bridge
Benjamin Poirier b627c387eb bridge: vni: Move open_json_object() within print_vni()
print_vni() is used to output one vni or vni range which, in json output
mode, looks like
      {
        "vni": 100
      }

Currently, the closing bracket is handled within the function but the
opening bracket is handled by open_json_object() before calling the
function. For consistency, move the call to open_json_object() within
print_vni().

Reviewed-by: Petr Machata <petrm@nvidia.com>
Tested-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Benjamin Poirier <bpoirier@nvidia.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
2023-12-22 09:54:23 -08:00
..
.gitignore Add bridge command 2012-08-01 15:23:49 -07:00
br_common.h bridge: make print_vlan_info static 2023-06-02 09:33:34 -07:00
bridge.c bridge: vni: Fix vni filter help strings 2023-12-22 09:54:23 -08:00
fdb.c bridge: fdb: support match on [no]router flag in flush command 2023-10-20 09:43:05 -06:00
link.c bridge: Add backup nexthop ID support 2023-08-04 09:09:43 -06:00
Makefile bridge: vxlan device vnifilter support 2022-05-08 09:50:32 -06:00
mdb.c bridge: mdb: Add get support 2023-11-06 10:08:50 -07:00
monitor.c bridge: use SPDX 2023-01-14 09:00:34 -08:00
vlan.c bridge: vlan: Remove paranoid check 2023-12-22 09:54:23 -08:00
vni.c bridge: vni: Move open_json_object() within print_vni() 2023-12-22 09:54:23 -08:00