From e06b876bdf3ac298b54bdca3bf68e306644b87d4 Mon Sep 17 00:00:00 2001 From: Jonathan Voss Date: Tue, 24 Dec 2024 16:32:13 +0000 Subject: [PATCH] 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 --- tools/frr-reload.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 ": {}, -- 2.39.5