diff --git a/inc/inventorynetworkequipmentlib.class.php b/inc/inventorynetworkequipmentlib.class.php index 4346762281..1d3b62c814 100644 --- a/inc/inventorynetworkequipmentlib.class.php +++ b/inc/inventorynetworkequipmentlib.class.php @@ -244,9 +244,12 @@ function importPorts($a_inventory, $items_id) { $networkports_id = 0; foreach ($a_inventory['networkport'] as $a_port) { $ifType = $a_port['iftype']; - if ($pfNetworkporttype->isImportType($ifType) + if (($pfNetworkporttype->isImportType($ifType) || isset($a_inventory['aggregate'][$a_port['logical_number']]) - || $ifType == '') { + || $ifType == '' + ) + && (!isset($a_port['ifstatus']) + || $a_port['ifstatus'] != 6)) { $a_ports_DB = current($networkPort->find( "`itemtype`='NetworkEquipment' AND `items_id`='".$items_id."'