]> git.puffer.fish Git - mirror/frr.git/commit
lib: add flavors display in json attributes
authorPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 11 Apr 2025 19:41:54 +0000 (21:41 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 1 May 2025 07:15:53 +0000 (09:15 +0200)
commita078e2e52e98da9362fc7fa267a7e8933139f8f8
treed8c377930b1bc9f73e9444e71125d944faae3c07
parent25056f31b6d9de4dc48676cfa28a931c051f1373
lib: add flavors display in json attributes

Add flavors display in json nexthop attributes.

> # ip -6 route add 2007::1 encap seg6local action End flavors psp dev dum1
> # vtysh -c "show ipv6 route json"
> [..]
> ,"2007::1/128":[{"prefix":"2007::1/128","prefixLen":128,"protocol":"kernel","vrfId":0,
> "vrfName":"default","selected":true,"destSelected":true,"distance":0,"metric":1024,
> "installed":true,"table":254,"internalStatus":16,"internalFlags":8,"internalNextHopNum":1,
> "internalNextHopActiveNum":1,"nexthopGroupId":28,"installedNexthopGroupId":28,"uptime":"00:04:20",
> "nexthops":[{"flags":3,"fib":true,"directlyConnected":true,"interfaceIndex":19,"interfaceName":"dum1",
> "active":true,"weight":1,"seg6local":{"action":"End","sidStructure":{"blockLen":0,"nodeLen":0,"funcLen":0,"argLen":0}},
> "seg6localContext":{"flavors":["psp"]}}]}]
> [..]

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