From 5c1799254af3a56fbd89e2235a63e88067a86a99 Mon Sep 17 00:00:00 2001 From: Matt Thurston Date: Wed, 17 Sep 2025 10:16:15 +0100 Subject: [PATCH] Update prep_118_topology_edge_connections.py --- .../prepare_plugins/prep_118_topology_edge_connections.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/action/common/prepare_plugins/prep_118_topology_edge_connections.py b/plugins/action/common/prepare_plugins/prep_118_topology_edge_connections.py index 23c6d3af4..5b62be6b8 100644 --- a/plugins/action/common/prepare_plugins/prep_118_topology_edge_connections.py +++ b/plugins/action/common/prepare_plugins/prep_118_topology_edge_connections.py @@ -37,7 +37,10 @@ def prepare(self): # management IP address from topology switches topology_switches = model_data['vxlan']['topology']['switches'] for link in model_data['vxlan']['topology']['edge_connections']: - if any(sw['name'] == link['source_device'] for sw in topology_switches): + if "." in link['source_interface']: + self.kwargs['results']['failed'] = True + self.kwargs['results']['msg'] = "Sub interfaces not allowed to be used for edge connections" + elif any(sw['name'] == link['source_device'] for sw in topology_switches): found_switch = next((item for item in topology_switches if item["name"] == link['source_device'])) if found_switch.get('management').get('management_ipv4_address'): link['source_device_ip'] = found_switch['management']['management_ipv4_address']