From: Jonathan Voss Date: Tue, 24 Dec 2024 16:32:13 +0000 (+0000) Subject: tools: Add missing formats keyword to segment-routing in frr-reload X-Git-Tag: docker/10.2.2~55^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F17743%2Fhead;p=mirror%2Ffrr.git 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 --- 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 ": {},