]> git.puffer.fish Git - mirror/frr.git/commitdiff
tools: Add missing formats keyword to segment-routing in frr-reload 17743/head
authorJonathan Voss <jvoss@onvox.net>
Tue, 24 Dec 2024 16:32:13 +0000 (16:32 +0000)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Tue, 31 Dec 2024 13:40:54 +0000 (15:40 +0200)
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>
tools/frr-reload.py

index 08a1f1e07eac0d8970b676cc69da5d2c6fa0f686..f06934ec640af08a32e5318e88c7c89f5373467c 100755 (executable)
@@ -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 ": {},