diff options
| author | Jonathan Voss <jvoss@onvox.net> | 2024-12-24 16:32:13 +0000 |
|---|---|---|
| committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-12-31 15:40:54 +0200 |
| commit | e06b876bdf3ac298b54bdca3bf68e306644b87d4 (patch) | |
| tree | d3b2c1d4124aa074d5596615aeaee1946709c2fe /tools/frr-reload.py | |
| parent | 5f0beaa0fdd00b7a60c1765067d1b6fa65ce96c0 (diff) | |
tools: Add missing formats keyword to segment-routing in frr-reload
When reloading the following configuration:
```
segment-routing
srv6
formats
format usid-f3216
wide-local-id-block explicit start 100
exit
!
format uncompressed-f4024
exit
!
exit
!
exit
!
exit
```
frr-reload.py does not properly enter the `formats` context. Because of this,
it fails with an unknown command error when applying new or updating format
configuration.
Signed-off-by: Jonathan Voss <jvoss@onvox.net>
Diffstat (limited to 'tools/frr-reload.py')
| -rwxr-xr-x | tools/frr-reload.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/frr-reload.py b/tools/frr-reload.py index 08a1f1e07e..f06934ec64 100755 --- a/tools/frr-reload.py +++ b/tools/frr-reload.py @@ -275,7 +275,11 @@ ctx_keywords = { "policy ": {"candidate-path ": {}}, "pcep": {"pcc": {}, "pce ": {}, "pce-config ": {}}, }, - "srv6": {"locators": {"locator ": {}}}, + "srv6": { + "locators": {"locator ": {}}, + "encapsulation": {}, + "formats": {"format": {}}, + }, }, "nexthop-group ": {}, "route-map ": {}, |
