diff options
author | aapostoliuk <a.apostoliuk@vyos.io> | 2025-04-30 14:21:49 +0300 |
---|---|---|
committer | aapostoliuk <a.apostoliuk@vyos.io> | 2025-04-30 14:21:49 +0300 |
commit | 6a35127ca988abb8673df9723591df5ab951ae16 (patch) | |
tree | e3d39c8bfbe88127b81c222cccc38e7c2232b051 /src | |
parent | b6a43b7810c89c9f3eb2d45771a9ff4be538e010 (diff) | |
download | vyos-1x-6a35127ca988abb8673df9723591df5ab951ae16.tar.gz vyos-1x-6a35127ca988abb8673df9723591df5ab951ae16.zip |
bgp: T7157: Fixed error with the unknown key in the verification
Fixed error with the unknown key in the verification
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/protocols_bgp.py | 2 |
1 files changed, 1 insertions, 1 deletions
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!') |