]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: display seg6local only when specified
authorPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 12 Apr 2023 09:04:25 +0000 (11:04 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 14 Apr 2023 16:04:01 +0000 (18:04 +0200)
commitb4bb3b173597252754750dc07ff1016e30086684
treed01af1c93b47c75564f03afc8c95c656875bba92
parentbe574cf987311bf299de018b71084e69eb08f5fc
zebra: display seg6local only when specified

Srv6 routes which configure encap method, may not have
seg6local instructions. Generally speaking, seg6local
attributes that are not specified should not be dumped.

Before:
> B>* 10.200.0.0/24 [20/0] via fd00:125::2, ntfp2 (vrf default), label 16, seg6local unspec unknown(seg6local_context2str), seg6 2001:db8:1:1:1::, weight 1, 0\
0:00:17

After:
> B>* 10.200.0.0/24 [20/0] via fd00:125::2, ntfp2 (vrf default), label 16, seg6 2001:db8:1:1:1::, weight 1, 00:00:17

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