mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-06 07:51:29 +00:00
Revert "bgpd: fix "used" json key on link-local nexthop"
This reverts commit 2de4dfc97a
.
This commit is contained in:
parent
9a5c3b931e
commit
3e7094e2b1
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user