frr
frr copied to clipboard
zebra: Add CLI to display SRv6 SIDs allocated
Add a CLI to display the information regarding SRv6 local SID(s) allocated from a given locator.
Usage examples:
router# show segment-routing srv6 sid
SID Behavior Context Daemon/Instance
----------------- ---------- --------------------- -----------------
fc00:0:1:: uN - isis(0)
fc00:0:1:fe00:: uDT6 VRF 'vrf10' bgp(0)
fc00:0:1:fe01:: uDT6 VRF 'vrf20' bgp(0)
fc00:0:1:e000:: uA Interface 'eth-sw1' isis(0)
fc00:0:1:e001:: uA Interface 'eth-sw1' isis(0)
router# show segment-routing srv6 sid fc00:0:1:e000:: detail
SID Behavior Context Daemon/Instance
----------------- ---------- --------------------- -----------------
fc00:0:1:e000:: uA Interface 'eth-sw1' isis(0)
Locator: loc1
Allocation type: dynamic
router# show segment-routing srv6 sid json
[
{
"sid":"fc00:0:1::",
"behavior":"uN",
"context":"-",
"daemons":"isis(0)"
},
{
"sid":"fc00:0:1:fe00::",
"behavior":"uDT6",
"context":"VRF 'vrf10'",
"daemons":"bgp(0)"
},
{
"sid":"fc00:0:1:fe01::",
"behavior":"uDT6",
"context":"VRF 'vrf20'",
"daemons":"bgp(0)"
},
{
"sid":"fc00:0:1:e000::",
"behavior":"uA",
"context":"Interface 'eth-sw1'",
"daemons":"isis(0)"
},
{
"sid":"fc00:0:1:e001::",
"behavior":"uA",
"context":"Interface 'eth-sw1'",
"daemons":"isis(0)"
}
]
I think the json should have the daemon name and the instance name as separate entities not combined
Hi @cscarpitta , any updates on this?
Can we also add status field something like Allocated (by zebra) and Installed (into kernel) in the above show command.
frrbot complains. please fix it, so that we can merge it.
I addressed all comments. The PR is ready for merge.