summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@users.noreply.github.com>2021-04-06 05:44:25 +0200
committerGitHub <noreply@github.com>2021-04-06 05:44:25 +0200
commit2a9d6bce5acd027498f057a01259adab78a102d9 (patch)
tree58f6639ff2d2cab7c14c02dcbeb3972517c8c9a2
parentMerge pull request #8348 from chiragshah6/mdev (diff)
parenttools: do in-place SRGB/SRLB changes (diff)
downloadfrr-2a9d6bce5acd027498f057a01259adab78a102d9.tar.xz
frr-2a9d6bce5acd027498f057a01259adab78a102d9.zip
Merge pull request #8384 from volta-networks/fix_no_srb_block
tools: do in-place SRGB/SRLB changes
-rwxr-xr-xtools/frr-reload.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/frr-reload.py b/tools/frr-reload.py
index cfc745d43..f4b832691 100755
--- a/tools/frr-reload.py
+++ b/tools/frr-reload.py
@@ -1115,6 +1115,16 @@ def ignore_delete_re_add_lines(lines_to_add, lines_to_del):
for (ctx_keys, line) in lines_to_del:
deleted = False
+ # If there is a change in the segment routing block ranges, do it
+ # in-place, to avoid requesting spurious label chunks which might fail
+ if line and "segment-routing global-block" in line:
+ for (add_key, add_line) in lines_to_add:
+ if ctx_keys[0] == add_key[0] and add_line and "segment-routing global-block" in add_line:
+ lines_to_del_to_del.append((ctx_keys, line))
+ break
+ continue
+
+
if ctx_keys[0].startswith("router bgp") and line:
if line.startswith("neighbor "):