]> git.puffer.fish Git - mirror/frr.git/commit
lib: add support for flavors in seg6 routes
authorPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 2 Apr 2025 11:20:18 +0000 (13:20 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 1 May 2025 07:15:53 +0000 (09:15 +0200)
commita95fd3e76fc1e056c53752963017a7fd75ed99b2
tree3eda969529d21dee98d2bc962869314732327a2a
parent3dd4d417bee4e71ae8ea0cec2a7fc355806d1e19
lib: add support for flavors in seg6 routes

Until now, the 'show ipv6 route' was not showing up the flavors.

> ip/ip -6 route add 2007::1 encap seg6local action End flavors psp dev dum1

Before:
> rt1# show ipv6 route
> [..]
> K>* 2007::1/128 [0/1024] is directly connected, dum1, seg6local End -, weight 1, 00:00:04

After:
> rt1# show ipv6 route
> [..]
> K>* 2007::1/128 [0/1024] is directly connected, dum1, seg6local End (PSP), weight 1, 00:00:04

Note that the next-csid linux flavor will be handled separately.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
lib/srv6.c
lib/srv6.h