diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-08-14 20:15:13 +0300 |
|---|---|---|
| committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-08-14 20:15:13 +0300 |
| commit | 3e7094e2b19459c81aac40fa00b4ea0812c1902e (patch) | |
| tree | 2af0bcf154a9bb8712d48dd61b5a01da451ce495 | |
| parent | 9a5c3b931e0c4cf6f8bf7f9b2e31a04ea96250af (diff) | |
Revert "bgpd: fix "used" json key on link-local nexthop"
This reverts commit 2de4dfc97adfec788e45e148b4204196d612c81c.
| -rw-r--r-- | bgpd/bgp_route.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index f6fe87e352..9e40e165fa 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -9659,7 +9659,10 @@ void route_vty_out(struct vty *vty, const struct prefix *p, json_object_string_add(json_nexthop_ll, "scope", "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)) json_object_boolean_true_add( json_nexthop_ll, "used"); |
