Skip to content
Snippets Groups Projects
Commit 146ffe57 authored by Bjarke Madsen's avatar Bjarke Madsen
Browse files

ensure vlan_type is always set

parent 235540fd
No related branches found
No related tags found
Loading
......@@ -908,8 +908,9 @@ def load_interfaces_to_poll(config, hostname=None, no_lab=False, use_next_redis=
ifc_list.sort(key=lambda x: x['name'])
base = ifc_list.pop(0)
if base['name'] != base_ifc:
continue
base['vlan_type'] = VLAN_TYPES.TRUNK.name
base['vlan_type'] = VLAN_TYPES.VLAN.name
else:
base['vlan_type'] = VLAN_TYPES.TRUNK.name
for ifc in ifc_list:
ifc['vlan_type'] = VLAN_TYPES.VLAN.name
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment