diff --git a/inventory_provider/routes/poller.py b/inventory_provider/routes/poller.py index 7c459303d1107d5ccf78565d89dd9a7b0f1086da..3b9eec5cd6f6abd3b020bb5801716f74ad203758 100644 --- a/inventory_provider/routes/poller.py +++ b/inventory_provider/routes/poller.py @@ -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