diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-11-15 20:54:18 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-11-15 20:54:18 +0100 |
commit | ba476efa31ba175bf3f2c8084fdc5cdd962104d7 (patch) | |
tree | aedc7062bafdc7cba5acda1e3e7fb39e297e4837 /src/conf_mode/vrf_vni.py | |
parent | 91774813de0cd1d4199832b4b1fbde1bf78c4a11 (diff) | |
download | vyos-1x-ba476efa31ba175bf3f2c8084fdc5cdd962104d7.tar.gz vyos-1x-ba476efa31ba175bf3f2c8084fdc5cdd962104d7.zip |
vrf: T3994: fix broken regex when modifying FRR vrf section
Diffstat (limited to 'src/conf_mode/vrf_vni.py')
-rwxr-xr-x | src/conf_mode/vrf_vni.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/vrf_vni.py b/src/conf_mode/vrf_vni.py index 8baa73801..50d60f0dc 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 [a-zA-Z-]*$', '') + frr_cfg.modify_section(f'^vrf .+$', '') frr_cfg.add_before(r'(interface .*|line vty)', vrf['new_frr_config']) frr_cfg.commit_configuration(frr_daemon) |