summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-08-25 21:12:58 +0200
committerChristian Poessinger <christian@poessinger.com>2021-08-25 21:12:58 +0200
commit8c7741cbdb1a38561bb0c82e5c8aff2109224c2e (patch)
treea5bc36dd6c7ba6d580d0f497dd63abc14f99bcaf /src/conf_mode
parent2d5199e75d02c29ce924f932de5c9b012d2b11fd (diff)
downloadvyos-1x-8c7741cbdb1a38561bb0c82e5c8aff2109224c2e.tar.gz
vyos-1x-8c7741cbdb1a38561bb0c82e5c8aff2109224c2e.zip
frr: T3217: Abbility to save routing configs
(cherry picked from commit d9d923ea4e0bbe0cc154dc2fbdd626585b5d7449)
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/protocols_rip.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/conf_mode/protocols_rip.py b/src/conf_mode/protocols_rip.py
index 8ddd705f2..f36abbf90 100755
--- a/src/conf_mode/protocols_rip.py
+++ b/src/conf_mode/protocols_rip.py
@@ -125,7 +125,7 @@ def get_config(config=None):
conf.set_level(base)
- # Get distribute list interface
+ # Get distribute list interface
for dist_iface in conf.list_nodes('distribute-list interface'):
# Set level 'distribute-list interface ethX'
conf.set_level(base + ['distribute-list', 'interface', dist_iface])
@@ -301,6 +301,7 @@ def apply(rip):
if os.path.exists(config_file):
call(f'vtysh -d ripd -f {config_file}')
+ call('sudo vtysh --writeconfig --noerror')
os.remove(config_file)
else:
print("File {0} not found".format(config_file))