diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-08-25 21:12:58 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-08-25 21:12:58 +0200 |
commit | 8c7741cbdb1a38561bb0c82e5c8aff2109224c2e (patch) | |
tree | a5bc36dd6c7ba6d580d0f497dd63abc14f99bcaf /src | |
parent | 2d5199e75d02c29ce924f932de5c9b012d2b11fd (diff) | |
download | vyos-1x-8c7741cbdb1a38561bb0c82e5c8aff2109224c2e.tar.gz vyos-1x-8c7741cbdb1a38561bb0c82e5c8aff2109224c2e.zip |
frr: T3217: Abbility to save routing configs
(cherry picked from commit d9d923ea4e0bbe0cc154dc2fbdd626585b5d7449)
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/protocols_rip.py | 3 |
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)) |