diff options
| author | Ryoga Saito <ryoga.saito@linecorp.com> | 2022-11-22 22:57:24 +0900 |
|---|---|---|
| committer | Ryoga Saito <ryoga.saito@linecorp.com> | 2022-11-22 22:59:46 +0900 |
| commit | 3afb06d324d93541ab1f992895f647e2fc63b159 (patch) | |
| tree | 1c152181cca265e0cc18c4620ea02cc9d2a0afff | |
| parent | 298748af21f1bd2a1e3890353e7ef6a47946cdf7 (diff) | |
bgpd: Fix the other of SR locator parameters
The latest FRR's frr-reload.py is broken and we can't reload FRR
gracefully with segment routing locator configuration (if we
execute frr-reload.py, FRR will stop suddenly).
The root cause of this issue is very simple. FRR will display the
current configuration like this (the below is the result of
"show running-configuration").
``
segment-routing
srv6
locators
locator default
prefix fd00:1:0:1::/64 block-len 40 node-len 24 func-bits 16
exit
!
exit
!
exit
!
exit
```
However, FRR doesn't accept segment routing locator parameters
if we specify block-len and node-len earlier than func-bits.
Signed-off-by: Ryoga Saito <ryoga.saito@linecorp.com>
| -rw-r--r-- | zebra/zebra_srv6_vty.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/zebra/zebra_srv6_vty.c b/zebra/zebra_srv6_vty.c index 1221365d4d..13ad9d71bb 100644 --- a/zebra/zebra_srv6_vty.c +++ b/zebra/zebra_srv6_vty.c @@ -276,16 +276,16 @@ DEFUN (no_srv6_locator, DEFPY (locator_prefix, locator_prefix_cmd, - "prefix X:X::X:X/M$prefix [func-bits (0-64)$func_bit_len] \ - [block-len (16-64)$block_bit_len] [node-len (16-64)$node_bit_len]", + "prefix X:X::X:X/M$prefix [block-len (16-64)$block_bit_len] \ + [node-len (16-64)$node_bit_len] [func-bits (0-64)$func_bit_len]", "Configure SRv6 locator prefix\n" "Specify SRv6 locator prefix\n" - "Configure SRv6 locator function length in bits\n" - "Specify SRv6 locator function length in bits\n" "Configure SRv6 locator block length in bits\n" "Specify SRv6 locator block length in bits\n" "Configure SRv6 locator node length in bits\n" - "Specify SRv6 locator node length in bits\n") + "Specify SRv6 locator node length in bits\n" + "Configure SRv6 locator function length in bits\n" + "Specify SRv6 locator function length in bits\n") { VTY_DECLVAR_CONTEXT(srv6_locator, locator); struct srv6_locator_chunk *chunk = NULL; |
