diff options
| author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2022-01-13 10:34:04 +0200 |
|---|---|---|
| committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2022-01-13 10:34:04 +0200 |
| commit | 8ac66010c55cdcc8ccd6ff66c0406d91ed23a032 (patch) | |
| tree | 563ea6d64591496ae7c5183d33ca9533d59f8cac | |
| parent | 379effbf700f594a12c9da0d15b41742b2db6f43 (diff) | |
bgpd: Avoid additional check for json output under show ip bgp route
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
| -rw-r--r-- | bgpd/bgp_route.c | 5 |
1 files changed, 0 insertions, 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(); |
