diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2025-01-29 17:06:17 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-29 17:06:17 +0200 |
| commit | 05f9d44340755e5ca612e4852b710f4037254e7b (patch) | |
| tree | f2da85e1a1a832fd9240164e66b6afdf988e39e2 | |
| parent | f3d9ad20c6128932f840adebd8b1e0be59943045 (diff) | |
| parent | cb631608d47bc49c8c428118e688ace598f49489 (diff) | |
Merge pull request #17949 from FRRouting/mergify/bp/stable/10.2/pr-17946
tools: Fix frr-reload for ebgp-multihop TTL reconfiguration. (backport #17946)
| -rwxr-xr-x | tools/frr-reload.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/frr-reload.py b/tools/frr-reload.py index 44aad36109..72d2f441be 100755 --- a/tools/frr-reload.py +++ b/tools/frr-reload.py @@ -237,6 +237,14 @@ def get_normalized_interface_vrf(line): return line +def get_normalized_ebgp_multihop_line(line): + obj = re.search(r"(.*)ebgp-multihop\s+255", line) + if obj: + line = obj.group(1) + "ebgp-multihop" + + return line + + # This dictionary contains a tree of all commands that we know start a # new multi-line context. All other commands are treated either as # commands inside a multi-line context or as single-line contexts. This @@ -378,6 +386,9 @@ class Config(object): if ":" in line: line = get_normalized_mac_ip_line(line) + if "ebgp-multihop" in line: + line = get_normalized_ebgp_multihop_line(line) + # vrf static routes can be added in two ways. The old way is: # # "ip route x.x.x.x/x y.y.y.y vrf <vrfname>" |
