summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/interfaces_virtual-ethernet.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/conf_mode/interfaces_virtual-ethernet.py b/src/conf_mode/interfaces_virtual-ethernet.py
index 81a12c581..4bcabe304 100755
--- a/src/conf_mode/interfaces_virtual-ethernet.py
+++ b/src/conf_mode/interfaces_virtual-ethernet.py
@@ -27,6 +27,7 @@ from vyos.configverify import verify_bridge_delete
from vyos.configverify import verify_vrf
from vyos.configverify import verify_mtu_ipv6
from vyos.ifconfig import VethIf
+from vyos.utils.dict import dict_search
from vyos.utils.network import interface_exists
airbag.enable()
@@ -82,7 +83,7 @@ def verify(veth):
raise ConfigError(f'Used peer-name "{peer_name}" on interface "{ifname}" ' \
'is not configured!')
- if veth['other_interfaces'][peer_name]['peer_name'] != ifname:
+ if dict_search(f'other_interfaces.{peer_name}.peer_name', veth) != ifname:
raise ConfigError(
f'Configuration mismatch between "{ifname}" and "{peer_name}"!')