]> git.proxmox.com Git - mirror_frr.git/commit - lib/srv6.c
lib,zebra: Add SRv6 uSID info to VTY output
authorCarmine Scarpitta <carmine.scarpitta@uniroma2.it>
Thu, 27 Oct 2022 18:01:24 +0000 (20:01 +0200)
committerCarmine Scarpitta <carmine.scarpitta@uniroma2.it>
Tue, 8 Nov 2022 21:44:23 +0000 (22:44 +0100)
commita3ff3dff3fcf3e264d4484a1ce5bbe40db3edcb7
treee5c65a9b497c37ea6ce1efc66cb8cfee0cc27958
parent05d99980f36769778ebba434b0c101d36bf5fb4f
lib,zebra: Add SRv6 uSID info to VTY output

In this commit, we extend to print the `SRV6_LOCATOR_USID` flag.
The output appears as follows:

```
{
  "locators":[
    {
      "name":"loc1",
      "prefix":"fc00:0:1::/48",
      "blockBitsLength":32,
      "nodeBitsLength":16,
      "functionBitsLength":16,
      "argumentBitsLength":0,
      "uSID":true,
      "statusUp":true,
      "chunks":[
        {
          "prefix":"fc00:0:1::/48",
          "proto":"bgp"
        }
      ]
    }
  ]
}
```

Signed-off-by: Carmine Scarpitta <carmine.scarpitta@uniroma2.it>
lib/srv6.c
zebra/zebra_srv6_vty.c