diff options
| author | Louis Scalbert <louis.scalbert@6wind.com> | 2024-03-28 15:00:37 +0100 |
|---|---|---|
| committer | Louis Scalbert <louis.scalbert@6wind.com> | 2024-04-23 11:28:36 +0200 |
| commit | 2de4dfc97adfec788e45e148b4204196d612c81c (patch) | |
| tree | 40ad22557824428ada250d3784da5858538569a8 /lib/segment_routing.h | |
| parent | ee0378cdbb458f9d3710f1fb557368ace8d72477 (diff) | |
bgpd: fix "used" json key on link-local nexthop
When a peer has no IPv6 global address to send as nexthop, it sends the
IPv6 link-local instead as global. "show bgp ipv6 json" displays the
same address in global and link-local scopes.
> "nexthops": [
> {
> "ip": "fe80::a495:38ff:fea6:6ea3",
> "afi": "ipv6",
> "scope": "global",
> "used": true
> },
> {
> "ip": "fe80::a495:38ff:fea6:6ea3",
> "afi": "ipv6",
> "scope": "link-local"
> }
> ]
However, "used" key is set on the global nexthop but not in link-local.
It is correct but it makes difficult to test JSON to expect the usage of
a link-local. The contrary is also correct.
Set "used" key on the link-local nexhop instead to facilitate the tests.
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
Diffstat (limited to 'lib/segment_routing.h')
0 files changed, 0 insertions, 0 deletions
