From 8ac66010c55cdcc8ccd6ff66c0406d91ed23a032 Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Thu, 13 Jan 2022 10:34:04 +0200 Subject: [PATCH] bgpd: Avoid additional check for json output under show ip bgp route Signed-off-by: Donatas Abraitis --- bgpd/bgp_route.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index e821c83ab3..d25f4d4b71 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -10741,12 +10741,7 @@ void route_vty_out_detail(struct vty *vty, struct bgp *bgp, struct bgp_dest *bn, json_object_boolean_true_add(json_path, "fibInstalled"); if (CHECK_FLAG(bn->flags, BGP_NODE_FIB_INSTALL_PENDING)) json_object_boolean_true_add(json_path, "fibPending"); - } - /* We've constructed the json object for this path, add it to the json - * array of paths - */ - if (json_paths) { if (json_nexthop_global || json_nexthop_ll) { json_nexthops = json_object_new_array();