Skip to content

Commit

Permalink
tools: Add missing formats keyword to segment-routing in frr-reload
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
jvoss committed Dec 24, 2024
1 parent 9ce3b14 commit 5b8b821
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/frr-reload.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,11 @@ def get_normalized_interface_vrf(line):
"policy ": {"candidate-path ": {}},
"pcep": {"pcc": {}, "pce ": {}, "pce-config ": {}},
},
"srv6": {"locators": {"locator ": {}}, "encapsulation": {}},
"srv6": {
"locators": {"locator ": {}},
"encapsulation": {},
"formats": {"format": {}},
},
},
"nexthop-group ": {},
"route-map ": {},
Expand Down

0 comments on commit 5b8b821

Please sign in to comment.