diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-02-06 13:35:35 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-02-06 13:35:35 +0100 |
commit | 23d86d7131ac83febf9d3f5b33becabe005b26ce (patch) | |
tree | 0f5f07c7be96edb88e2a35baf1625b32862665a9 /src/conf_mode/protocols_rip.py | |
parent | 15f03db18f4ec1cffd96478d471e7b124bd9d3ac (diff) | |
download | vyos-1x-23d86d7131ac83febf9d3f5b33becabe005b26ce.tar.gz vyos-1x-23d86d7131ac83febf9d3f5b33becabe005b26ce.zip |
rip: T2547: take key_mangling() for prefix-list names into account
Diffstat (limited to 'src/conf_mode/protocols_rip.py')
-rwxr-xr-x | src/conf_mode/protocols_rip.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/protocols_rip.py b/src/conf_mode/protocols_rip.py index 722824b62..bb3790fb2 100755 --- a/src/conf_mode/protocols_rip.py +++ b/src/conf_mode/protocols_rip.py @@ -82,11 +82,11 @@ def verify(rip): raise ConfigError(f'Outbound ACL "{acl_out}" does not exist!') prefix_list_in = dict_search('distribute_list.prefix_list.in', rip) - if prefix_list_in and prefix_list_in not in (dict_search('policy.prefix_list', rip) or []): + if prefix_list_in and prefix_list_in.replace('-','_') not in (dict_search('policy.prefix_list', rip) or []): raise ConfigError(f'Inbound prefix-list "{prefix_list_in}" does not exist!') prefix_list_out = dict_search('distribute_list.prefix_list.out', rip) - if prefix_list_out and prefix_list_out not in (dict_search('policy.prefix_list', rip) or []): + if prefix_list_out and prefix_list_out.replace('-','_') not in (dict_search('policy.prefix_list', rip) or []): raise ConfigError(f'Outbound prefix-list "{prefix_list_out}" does not exist!') verify_route_maps(rip) |