frr/tools
Carmine Scarpitta 4b638cbed8 tools: Fix frr-reload.py error related to static-sids
```
[...]
segment-routing
 srv6
  static-sids
   sid fcbb:bbbb:1::/48 locator MAIN behavior uN
   sid fcbb:bbbb:1:fe10::/64 locator MAIN behavior uDT4 vrf Vrf10
   sid fcbb:bbbb:1:fe20::/64 locator MAIN behavior uDT6 vrf Vrf20
   sid fcbb:bbbb:1:fe30::/64 locator MAIN behavior uDT46 vrf Vrf30
   sid fcbb:bbbb:1:fe40::/64 locator MAIN behavior uA interface sr0 nexthop 2001::2
[...]
```

When the user has a configuration like the one above and runs the
command `frr-reload.py --reload`, the following error occurs:

```
[1129654|mgmtd] sending configuration
line 17: % Unknown command[76]:   sid fcbb:bbbb:1::/48 locator MAIN behavior uN
line 23: % Unknown command[76]:   sid fcbb:bbbb:1:fe10::/64 locator MAIN behavior uDT4 vrf Vrf10
line 29: % Unknown command[76]:   sid fcbb:bbbb:1:fe20::/64 locator MAIN behavior uDT6 vrf Vrf20
line 35: % Unknown command[76]:   sid fcbb:bbbb:1:fe30::/64 locator MAIN behavior uDT46 vrf Vrf30
line 41: % Unknown command[76]:   sid fcbb:bbbb:1:fe40::/64 locator MAIN behavior uA interface sr0 nexthop 2001::2
```

The problem is that in `frr-reload-py` all commands that start a new
multi-line context must be included in the `ctx_keyword` dictionary.
However, the `static-sids` command is not part of the `ctx_keyword`
dictionary.

This commit fixes the problem by adding `static-sids` to `ctx_keyword`.

Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
(cherry picked from commit a515de1c46)
2025-03-03 07:14:40 +00:00
..
coccinelle bgpd: Use route_map_result_t for route_map_apply() as return type 2022-09-20 10:45:02 +03:00
etc tools: Add rip support bundle commands 2024-12-13 10:56:17 -05:00
gcc-plugins tools/gcc-plugins: don't crash on array parameters 2024-10-15 13:35:24 +02:00
.gitignore build: ignore frr-llvm-cg binary 2021-03-27 20:59:39 +01:00
build-debian-package.sh *: manual SPDX License ID conversions 2023-02-09 14:09:07 +01:00
checkpatch.pl tools: we specifically added %Lu to our sprintfrr so allow it 2025-01-07 01:34:13 -05:00
checkpatch.sh tools: checkpatch updated with darr_foreach iter macros 2023-11-06 17:44:58 -05:00
cocci.h *: Add missing SPDX-License-Identifier for some .c/.h files 2024-03-21 16:46:58 +02:00
convert-fixedwidth.sh tools, doc: update checkpatch for u_int_* 2018-03-27 15:00:23 -04:00
emacs.dir-locals.el style: add format checker config that matches FRR style standards 2023-04-18 05:18:26 -04:00
fixup-deprecated.py *: manual SPDX License ID conversions 2023-02-09 14:09:07 +01:00
frr-llvm-cg.c build: add -Wimplicit-fallthrough 2023-10-12 21:23:18 +03:00
frr-llvm-debuginfo.cpp *: manual SPDX License ID conversions 2023-02-09 14:09:07 +01:00
frr-llvm-debuginfo.h *: manual SPDX License ID conversions 2023-02-09 14:09:07 +01:00
frr-reload tools: Add helper frr-reload shell script for clean error 2018-03-14 17:31:29 -07:00
frr-reload.py tools: Fix frr-reload.py error related to static-sids 2025-03-03 07:14:40 +00:00
frr.in build: homologize path handling 2024-01-27 19:02:52 +01:00
frr.service.in build: homologize path handling 2024-01-27 19:02:52 +01:00
frr.vim *: manual SPDX License ID conversions 2023-02-09 14:09:07 +01:00
frr@.service.in build: homologize path handling 2024-01-27 19:02:52 +01:00
frr_babeltrace.py tools: fix style check babletrace file 2024-11-25 09:00:03 -08:00
frrcommon.sh.in build: homologize path handling 2024-01-27 19:02:52 +01:00
frrinit.sh.in build: homologize path handling 2024-01-27 19:02:52 +01:00
gen_northbound_callbacks.c tools: fix regression in gen_northbound_callback tool 2025-01-20 06:01:59 +00:00
gen_yang_deviations.c lib: add flag to have libyang load internal ietf-yang-library module 2024-10-07 03:32:44 +00:00
generate_support_bundle.py *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
git-reindent-branch.py *: reformat python files 2020-10-07 17:22:26 -04:00
indent.py tools/indent.py: fix encoded byte stream handling 2024-04-10 16:05:03 +10:00
lua.scr bgpd: Add lua match command 2018-09-26 21:21:23 -04:00
Makefile build: non-recursive watchfrr & tools 2017-09-07 16:18:50 +02:00
mrlg.txt mrlg: Remove obsolete version. 2016-05-26 01:16:28 +00:00
multiple-bgpd.sh tools: update to use FRR name 2017-07-12 13:26:22 -05:00
nhrpd-event-handler.sh *: manual SPDX License ID conversions 2023-02-09 14:09:07 +01:00
permutations.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
release_notes.py tools: Skip decorating commits with references (branch name, remote) 2022-02-04 23:24:03 +02:00
releasedate.py doc, tools: Update release dates in workflow.rst 2022-05-27 08:25:12 +03:00
render_md.py *: manual SPDX License ID conversions 2023-02-09 14:09:07 +01:00
rrcheck.pl tools: use standard interpreter path in all Perl scripts 2012-04-30 16:13:47 +02:00
rrlookup.pl tools: use standard interpreter path in all Perl scripts 2012-04-30 16:13:47 +02:00
start-stop-daemon.c tools: remove strncpy() use 2024-10-22 14:53:52 +02:00
stringmangle.py *: manual SPDX License ID conversions 2023-02-09 14:09:07 +01:00
subdir.am tools: remove strncpy() use 2024-10-22 14:53:52 +02:00
symalyzer.html *: manual SPDX License ID conversions 2023-02-09 14:09:07 +01:00
symalyzer.py *: manual SPDX License ID conversions 2023-02-09 14:09:07 +01:00
valgrind.supp tools: suppress some reachable external lib "leaks" 2023-11-11 21:10:45 +01:00
vty_index.sh *: fix remaining vty->index & add coccinelle patch 2016-12-09 17:36:25 +01:00
watchfrr.sh.in build: homologize path handling 2024-01-27 19:02:52 +01:00
zc.pl *: manual SPDX License ID conversions 2023-02-09 14:09:07 +01:00
zebra.el Initial revision 2002-12-13 20:15:29 +00:00