summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2025-05-05 06:35:37 +0200
committerGitHub <noreply@github.com>2025-05-05 06:35:37 +0200
commit0485d2f12518ec72bd55d5b93b551500759c5ca6 (patch)
tree06c732dfc014727ce9c84b1714752a621cd25b45 /src
parent17f177e85cc85900c38262814496a65e37da007a (diff)
parent6a35127ca988abb8673df9723591df5ab951ae16 (diff)
downloadvyos-1x-0485d2f12518ec72bd55d5b93b551500759c5ca6.tar.gz
vyos-1x-0485d2f12518ec72bd55d5b93b551500759c5ca6.zip
Merge pull request #4488 from aapostoliuk/T7157-circinus-fix
bgp: T7157: Fixed error with the unknown key in the verification
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/protocols_bgp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/protocols_bgp.py b/src/conf_mode/protocols_bgp.py
index a0c853bce..99d8eb9d1 100755
--- a/src/conf_mode/protocols_bgp.py
+++ b/src/conf_mode/protocols_bgp.py
@@ -531,7 +531,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!')