summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2022-01-09 15:17:00 +0100
committerGitHub <noreply@github.com>2022-01-09 15:17:00 +0100
commit398f41c8bb0db1e2d133cf8c68b6996f92ffd091 (patch)
tree804355784ee9a5b721f83795bd6ee4716f7c6ace /tools
parentMerge pull request #9517 from anlancs/reload-add-str (diff)
parenttools: cleanup route convertion from null0/Null0 to blackhole (diff)
downloadfrr-398f41c8bb0db1e2d133cf8c68b6996f92ffd091.tar.xz
frr-398f41c8bb0db1e2d133cf8c68b6996f92ffd091.zip
Merge pull request #10030 from anlancs/cleanup-reload-null0
tools: cleanup convertion of "Null0"
Diffstat (limited to 'tools')
-rwxr-xr-xtools/frr-reload.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/frr-reload.py b/tools/frr-reload.py
index c33c1f72a..2be865351 100755
--- a/tools/frr-reload.py
+++ b/tools/frr-reload.py
@@ -433,16 +433,12 @@ class Config(object):
):
key[0] = re.sub(r"\s+null0(\s*$)", " Null0", key[0])
- # Similar to above, but when the static is in a vrf, it turns into a
- # blackhole nexthop for both null0 and Null0. Fix it accordingly
if lines and key[0].startswith("vrf "):
newlines = []
for line in lines:
if line.startswith("ip route ") or line.startswith("ipv6 route "):
if "null0" in line:
- line = re.sub(r"\s+null0(\s*$)", " blackhole", line)
- elif "Null0" in line:
- line = re.sub(r"\s+Null0(\s*$)", " blackhole", line)
+ line = re.sub(r"\s+null0(\s*$)", " Null0", line)
newlines.append(line)
else:
newlines.append(line)