Revert "bgpd: fix "used" json key on link-local nexthop"

This reverts commit 2de4dfc97a.
This commit is contained in:
Donatas Abraitis 2024-08-14 20:15:13 +03:00
parent 9a5c3b931e
commit 3e7094e2b1

View File

@ -9659,7 +9659,10 @@ void route_vty_out(struct vty *vty, const struct prefix *p,
json_object_string_add(json_nexthop_ll, "scope", json_object_string_add(json_nexthop_ll, "scope",
"link-local"); "link-local");
if (!CHECK_FLAG(attr->nh_flags, if ((IPV6_ADDR_CMP(&attr->mp_nexthop_global,
&attr->mp_nexthop_local) !=
0) &&
!CHECK_FLAG(attr->nh_flags,
BGP_ATTR_NH_MP_PREFER_GLOBAL)) BGP_ATTR_NH_MP_PREFER_GLOBAL))
json_object_boolean_true_add( json_object_boolean_true_add(
json_nexthop_ll, "used"); json_nexthop_ll, "used");