diff options
| author | Carmine Scarpitta <cscarpit@cisco.com> | 2024-11-24 09:37:22 +0100 |
|---|---|---|
| committer | Carmine Scarpitta <cscarpit@cisco.com> | 2024-11-24 10:08:47 +0100 |
| commit | c8e83c3bfd94fa6a5a2ea85a8d374aae3a48980a (patch) | |
| tree | a2f198d2a5da74095b71a6731f738fd1344aa1f9 /tools | |
| parent | d745f4eae5d6e8df84de930632a3bcf3044408d3 (diff) | |
tools: Add missing keyword `encapsulation` in frr-reload
Consider the following scenario.
You start from the configuration below:
```
!
segment-routing
srv6
encapsulation
source-address fc00:0:1::1
!
!
!
```
Then you change the source address:
```
r1# configure
r1(config)# segment-routing
r1(config-sr)# srv6
r1(config-srv6)# encapsulation
r1(config-srv6-encap) source-address 1::1
```
And finally, reload the configuration
`python3 frr-reload.py --reload /etc/frr/frr.conf`
frr-reload returns the error below:
```
Failed to execute segment-routing srv6 no source-address 1::1 exit exit
"segment-routing -- srv6 -- no source-address 1::1 -- exit -- exit" we failed to remove this command
% Unknown command: no source-address 1::1
[79975|mgmtd] sending configuration
line 3: % Unknown command[76]: source-address fc00:0:1::1
[79975|mgmtd] Configuration file[/etc/frr/frr.conf] processing failure: 2
```
The reason is that the keyword `encapsulation` is missing in frr-reload.
This patch adds the missing keyword `encapsulation`.
Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/frr-reload.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/frr-reload.py b/tools/frr-reload.py index 33d6cf0444..2bb364f32b 100755 --- a/tools/frr-reload.py +++ b/tools/frr-reload.py @@ -279,7 +279,7 @@ ctx_keywords = { "policy ": {"candidate-path ": {}}, "pcep": {"pcc": {}, "pce ": {}, "pce-config ": {}}, }, - "srv6": {"locators": {"locator ": {}}}, + "srv6": {"locators": {"locator ": {}}, "encapsulation": {}}, }, "nexthop-group ": {}, "route-map ": {}, |
