]> git.puffer.fish Git - mirror/frr.git/commit
zebra, lib, vtysh: Add CLI cmd to set/unset SRv6 encap source address
authorCarmine Scarpitta <carmine.scarpitta@uniroma2.it>
Thu, 3 Nov 2022 07:40:23 +0000 (08:40 +0100)
committerCarmine Scarpitta <cscarpit@cisco.com>
Thu, 14 Dec 2023 13:58:33 +0000 (14:58 +0100)
commit69bff19c43c8f263aeb0fb3211ee0e3faf37ec5c
treeedf4dc0473e770e6927e27db93c1168326678caa
parent8d0b4745a1acd5e363159a1b9732a0fd596413e5
zebra, lib, vtysh: Add CLI cmd to set/unset SRv6 encap source address

- Add a new node `SRV6_ENCAP_NODE` to the CLI graph. This node allows
users to configure encapsulation parameters for SRv6, including the
source address of the outer encapsulating IPv6 header.

- Install a new CLI command `source-address` under the
`SRV6_ENCAP_NODE` node. This command is used to configure the source
address of the outer encapsulating IPv6 header.

- Install a new CLI command `no source-address` under the
`SRV6_ENCAP_NODE` node. This command is used to unset the
source address of the outer encapsulating IPv6 header and restore the
default source address.

Examples:

```
router# segment-routing
router(sr)# srv6
router(srv6)# encapsulation
router(srv6-encap)# source-address fc00:0:1::1
```

```
router# segment-routing
router(sr)# srv6
router(srv6)# encapsulation
router(srv6-encap)# no source-address
```

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