summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-01-29 17:28:39 +0100
committerChristian Poessinger <christian@poessinger.com>2021-01-29 17:28:39 +0100
commit611f66c405ba84ffce919823a8d815ef13128a61 (patch)
tree04d8d77cf6f78801b7120154162889c19206b9bb /src/conf_mode
parentaf487e7827a6936b3b72bc4a02b609289befb59a (diff)
downloadvyos-1x-611f66c405ba84ffce919823a8d815ef13128a61.tar.gz
vyos-1x-611f66c405ba84ffce919823a8d815ef13128a61.zip
ospf: T3272: ensure interface config is consistent to CLI
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/protocols_ospf.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/conf_mode/protocols_ospf.py b/src/conf_mode/protocols_ospf.py
index a1ca7725f..866b2db62 100755
--- a/src/conf_mode/protocols_ospf.py
+++ b/src/conf_mode/protocols_ospf.py
@@ -138,6 +138,7 @@ def apply(ospf):
# Save original configuration prior to starting any commit actions
frr_cfg = frr.FRRConfig()
frr_cfg.load_configuration(frr_daemon)
+ frr_cfg.modify_section(r'interface \S+', '')
frr_cfg.modify_section('router ospf', '')
frr_cfg.add_before(r'(ip prefix-list .*|route-map .*|line vty)', ospf['new_frr_config'])