]> git.puffer.fish Git - mirror/frr.git/commit
lib: Extend nexthop json helper to display SRv6 encap behavior
authorCarmine Scarpitta <cscarpit@cisco.com>
Thu, 20 Feb 2025 10:33:56 +0000 (11:33 +0100)
committerCarmine Scarpitta <cscarpit@cisco.com>
Wed, 30 Apr 2025 16:54:43 +0000 (16:54 +0000)
commit36ba11f7d8581f32d565f4568edc68cc2ef881aa
treed5c67a70409b95b3d2976215dbd4e77dad328cec
parentf6438eb3b17bc7cac617480404b12d649fe11c66
lib: Extend nexthop json helper to display SRv6 encap behavior

This commit extends the `show ip route json` and `show ipv6 route json`
output to display the SRv6 encapsulation behavior associated with the
SRv6 nexthop.

```
router# show ipv6 route json
[...]
"2001:db8:1:1::1/128": [
{
"prefix": "2001:db8:1:1::1/128",
"prefixLen": 128,
"protocol": "static",
"selected": true,
"destSelected": true,
"distance": 1,
"metric": 0,
"installed": true,
"nexthops": [
{
"directlyConnected": true,
"active": true,
"weight": 1,
"seg6local": {
"action": "unspec"
},
"seg6": [
"fcbb:bbbb:1:2:3:4:5:6",
"fcbb:bbbb:7:8:fe00::"
],
"srv6EncapBehavior": "H.Encaps"
}
]
}
],
[...]
```

Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
lib/nexthop.c