From 6a35127ca988abb8673df9723591df5ab951ae16 Mon Sep 17 00:00:00 2001 From: aapostoliuk Date: Wed, 30 Apr 2025 14:21:49 +0300 Subject: bgp: T7157: Fixed error with the unknown key in the verification Fixed error with the unknown key in the verification --- src/conf_mode/protocols_bgp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/conf_mode/protocols_bgp.py b/src/conf_mode/protocols_bgp.py index 53e83c3b4..f5def4cea 100755 --- a/src/conf_mode/protocols_bgp.py +++ b/src/conf_mode/protocols_bgp.py @@ -527,7 +527,7 @@ def verify(config_dict): or dict_search('import.vrf', afi_config) is not None): # FRR error: please unconfigure vpn to vrf commands before # using import vrf commands - if ('vpn' in afi_config['import'] + if (dict_search('import.vpn', afi_config) is not None or dict_search('export.vpn', afi_config) is not None): raise ConfigError('Please unconfigure VPN to VRF commands before '\ 'using "import vrf" commands!') -- cgit v1.2.3