mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-16 21:18:15 +00:00
bgpd: Avoid additional check for json output under show ip bgp route
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
This commit is contained in:
parent
379effbf70
commit
8ac66010c5
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user