summaryrefslogtreecommitdiff
path: root/src/conf_mode/vrf_vni.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-11-28 10:37:36 +0100
committerChristian Poessinger <christian@poessinger.com>2021-11-28 10:37:36 +0100
commit1ec3f5b4573357314c008c6fa073b01a909c259e (patch)
tree1ee3ad8ea400e5b93598c94eb8fb040fb532fb9b /src/conf_mode/vrf_vni.py
parent192903561e5d7211155554fe06c18673fa74e1ed (diff)
downloadvyos-1x-1ec3f5b4573357314c008c6fa073b01a909c259e.tar.gz
vyos-1x-1ec3f5b4573357314c008c6fa073b01a909c259e.zip
vrf: vni: T3753: adjust to new FRR 8.1 syntax
Diffstat (limited to 'src/conf_mode/vrf_vni.py')
-rwxr-xr-xsrc/conf_mode/vrf_vni.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/vrf_vni.py b/src/conf_mode/vrf_vni.py
index 680d79826..1a7bd1f09 100755
--- a/src/conf_mode/vrf_vni.py
+++ b/src/conf_mode/vrf_vni.py
@@ -47,7 +47,7 @@ def apply(vrf):
# add configuration to FRR
frr_cfg = frr.FRRConfig()
frr_cfg.load_configuration(frr_daemon)
- frr_cfg.modify_section(f'^vrf .+', '')
+ frr_cfg.modify_section(f'^vrf .+', stop_pattern='^exit-vrf', remove_stop_mark=True)
if 'new_frr_config' in vrf:
frr_cfg.add_before(frr.default_add_before, vrf['new_frr_config'])
frr_cfg.commit_configuration(frr_daemon)