diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-08-30 09:58:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-30 09:58:22 +0200 |
commit | 7c1dfa6f21d1f16322044292a8d001ba049b0acd (patch) | |
tree | 7d52d2f7ac29a36167e3d10339a4e5bd450f510b | |
parent | 0831c666891506d26cf6b4730c88c2e900121d6a (diff) | |
parent | 778a6d590b6a53015fb2bbc3c4a7e1088547eb2a (diff) | |
download | vyos-1x-7c1dfa6f21d1f16322044292a8d001ba049b0acd.tar.gz vyos-1x-7c1dfa6f21d1f16322044292a8d001ba049b0acd.zip |
Merge pull request #534 from sever-sever/T2833
rip: T2833: Fix distribute-list filter
-rwxr-xr-x | src/conf_mode/protocols_rip.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/conf_mode/protocols_rip.py b/src/conf_mode/protocols_rip.py index 4f8816d61..95e8ce901 100755 --- a/src/conf_mode/protocols_rip.py +++ b/src/conf_mode/protocols_rip.py @@ -97,7 +97,7 @@ def get_config(): # Get distribute list interface old_rip for dist_iface in conf.list_effective_nodes('distribute-list interface'): # Set level 'distribute-list interface ethX' - conf.set_level((str(base)) + ' distribute-list interface ' + dist_iface) + conf.set_level(base + ['distribute-list', 'interface', dist_iface]) rip_conf['rip']['distribute'].update({ dist_iface : { 'iface_access_list_in': conf.return_effective_value('access-list in'.format(dist_iface)), @@ -125,7 +125,7 @@ def get_config(): # Get distribute list interface for dist_iface in conf.list_nodes('distribute-list interface'): # Set level 'distribute-list interface ethX' - conf.set_level((str(base)) + ' distribute-list interface ' + dist_iface) + conf.set_level(base + ['distribute-list', 'interface', dist_iface]) rip_conf['rip']['distribute'].update({ dist_iface : { 'iface_access_list_in': conf.return_value('access-list in'.format(dist_iface)), @@ -148,7 +148,7 @@ def get_config(): if conf.exists('prefix-list out'.format(dist_iface)): rip_conf['rip']['iface_prefix_list_out'] = conf.return_value('prefix-list out'.format(dist_iface)) - conf.set_level((str(base)) + ' distribute-list') + conf.set_level(base + ['distribute-list']) # Get distribute list, access-list in if conf.exists_effective('access-list in'): |