summaryrefslogtreecommitdiff
path: root/src/conf_mode/protocols_ospf.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-05-06 20:47:13 +0200
committerChristian Poessinger <christian@poessinger.com>2021-05-06 20:47:13 +0200
commita732ceb20b65f1b1c5251b2e45394815b707b6fa (patch)
treefae6298f904b3131ec252acef10cd4d11fd33036 /src/conf_mode/protocols_ospf.py
parent137c57eb6b26e772304e5f01595d87205037e247 (diff)
downloadvyos-1x-a732ceb20b65f1b1c5251b2e45394815b707b6fa.tar.gz
vyos-1x-a732ceb20b65f1b1c5251b2e45394815b707b6fa.zip
vrf: T3523: fix regex when removing dynamic routing protocols with a kernel route-map
Diffstat (limited to 'src/conf_mode/protocols_ospf.py')
-rwxr-xr-xsrc/conf_mode/protocols_ospf.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/protocols_ospf.py b/src/conf_mode/protocols_ospf.py
index a6cd5c9db..b5fef0c64 100755
--- a/src/conf_mode/protocols_ospf.py
+++ b/src/conf_mode/protocols_ospf.py
@@ -186,7 +186,7 @@ def apply(ospf):
# The route-map used for the FIB (zebra) is part of the zebra daemon
frr_cfg.load_configuration(zebra_daemon)
- frr_cfg.modify_section(r'^ip protocol ospf route-map [-a-zA-Z0-9.]+$', '')
+ frr_cfg.modify_section(r'\s+ip protocol ospf route-map [-a-zA-Z0-9.]+$', '', ' ')
frr_cfg.commit_configuration(zebra_daemon)
# Generate empty helper string which can be ammended to FRR commands, it