]> git.proxmox.com Git - mirror_frr.git/commit
zebra: keep seg6local information from 'show ipv6 route' consistent with iproute2
authorPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 12 Apr 2023 09:08:31 +0000 (11:08 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 14 Apr 2023 16:04:01 +0000 (18:04 +0200)
commitf38f5c9a78156f2422fa6d262de73c12bbc2fc0d
tree2bac391208c75a6129d5aafdf1f71e389d822707
parentb4bb3b173597252754750dc07ff1016e30086684
zebra: keep seg6local information from 'show ipv6 route' consistent with iproute2

Srv6 nexthop segments may not be set when configuring seg6local
attributes. This is the case for the following seg6local route:

Dump in vtysh, extract from 'show ipv6 route'
> B>* 2001:db8:1:1:1::/128 [20/0] is directly connected, vrf1, seg6local End.DT46 table 10, seg6 ::, weight 1, 00:02:10

Dump in iproute2, extract from 'ip -6 route show'
> 2001:db8:1:1:1:: nhid 22  encap seg6local action End.DT46 vrftable 10 dev vrf1 proto bgp metric 20 pref medium

As can be seen, the 'seg6 ::' nexthop segment is not visible on iproute2,
because it is not set. Do not display seg6 ipv6 nexthop when not set.

After:
> B>* 2001:db8:1:1:1::/128 [20/0] is directly connected, vrf1, seg6local End.DT46 table 10, weight 1, 00:02:10

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
zebra/zebra_rnh.c