From 23d86d7131ac83febf9d3f5b33becabe005b26ce Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 6 Feb 2021 13:35:35 +0100 Subject: rip: T2547: take key_mangling() for prefix-list names into account --- src/conf_mode/protocols_rip.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/conf_mode/protocols_rip.py') 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) -- cgit v1.2.3