{"action":"closed","issue":{"url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi/issues/1152","labels_url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi/issues/1152/labels{/name}","comments_url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi/issues/1152/comments","events_url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi/issues/1152/events","html_url":"https://github.com/fusioninventory/fusioninventory-for-glpi/issues/1152","id":109144035,"number":1152,"title":"MAC loopup, shoud use VIRTUALDEV<>1 devices first","user":{"login":"ddurieux","id":239744,"avatar_url":"https://avatars.githubusercontent.com/u/239744?v=3","gravatar_id":"","url":"https://api.github.com/users/ddurieux","html_url":"https://github.com/ddurieux","followers_url":"https://api.github.com/users/ddurieux/followers","following_url":"https://api.github.com/users/ddurieux/following{/other_user}","gists_url":"https://api.github.com/users/ddurieux/gists{/gist_id}","starred_url":"https://api.github.com/users/ddurieux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddurieux/subscriptions","organizations_url":"https://api.github.com/users/ddurieux/orgs","repos_url":"https://api.github.com/users/ddurieux/repos","events_url":"https://api.github.com/users/ddurieux/events{/privacy}","received_events_url":"https://api.github.com/users/ddurieux/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi/labels/Category:%20SNMP","name":"Category: SNMP","color":"ededed"},{"url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi/labels/Component:%20For%20junior%20contributor","name":"Component: For junior contributor","color":"ededed"},{"url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi/labels/Component:%20Found%20in%20version","name":"Component: Found in version","color":"ededed"},{"url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi/labels/Priority:%20Normal","name":"Priority: Normal","color":"ededed"},{"url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi/labels/Status:%20Closed","name":"Status: Closed","color":"ededed"},{"url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi/labels/Tracker:%20Bug","name":"Tracker: Bug","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi/milestones/32","html_url":"https://github.com/fusioninventory/fusioninventory-for-glpi/milestones/0.83+2.3","labels_url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi/milestones/32/labels","id":1330720,"number":32,"title":"0.83+2.3","description":null,"creator":{"login":"ddurieux","id":239744,"avatar_url":"https://avatars.githubusercontent.com/u/239744?v=3","gravatar_id":"","url":"https://api.github.com/users/ddurieux","html_url":"https://github.com/ddurieux","followers_url":"https://api.github.com/users/ddurieux/followers","following_url":"https://api.github.com/users/ddurieux/following{/other_user}","gists_url":"https://api.github.com/users/ddurieux/gists{/gist_id}","starred_url":"https://api.github.com/users/ddurieux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddurieux/subscriptions","organizations_url":"https://api.github.com/users/ddurieux/orgs","repos_url":"https://api.github.com/users/ddurieux/repos","events_url":"https://api.github.com/users/ddurieux/events{/privacy}","received_events_url":"https://api.github.com/users/ddurieux/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":15,"state":"open","created_at":"2015-09-30T08:59:51Z","updated_at":"2015-09-30T17:46:55Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2015-09-30T17:46:34Z","updated_at":"2015-09-30T17:46:55Z","closed_at":"2015-09-30T17:46:55Z","body":"---\n\n\nAuthor Name: **Tomás Abad** (Tomás Abad)\nOriginal Redmine Issue: 2139, http://forge.fusioninventory.org/issues/2139\nOriginal Date: 2013-06-10\nOriginal Assignee: David Durieux\n\n---\n\n## The environment\r\n\r\n* The server\r\n** Ubuntu Server 12.04.2 LTS (Quantal Quetzal) - Architecture AMD64\r\n** GLPI v0.83.8\r\n*** GLPI v0.83.8 Agents\r\n*** Bays Management v1.3.2\r\n*** Data Injection v2.2.4\r\n*** Dump Entity v1.3.1\r\n*** FusionInventory for GLPI v0.83+2.2\r\n**** FusionInventory v0.83+2.2\r\n**** FusionInventory DEPLOY v0.83+2.2\r\n**** FusionInventory INVENTORY v0.83+2.2\r\n**** FusionInventory SNMP v0.83+2.2\r\n*** IP Report v2.0.1\r\n*** Print to PDF v0.83.3\r\n*** Reports v1.6.1\r\n*** Shell Commands v1.5.2\r\n*** Web Services v1.3.1\r\n\r\n* The agents\r\n** FusionInventory-Agent v2.2.7-3 (for Windows)\r\n** FusionInventory-Agent v2.2.7-3 (for GNU/Linux)\r\n\r\n## The bug\r\n\r\nThe connections with the network devices are done with virtual ports instead of with physical ports.\r\n\r\nAs normal rule, the connections between a network port of a computer and a network device should use a physical network port of the computer intead of a virtual network port as happens now.\r\n\r\nThe image IncorrectNetworkPortConnections.png shows that bug in a computer with a single network adapter with only one Ethernet port. The following is an extract of the XML file of the <NETWORK></NETWORK> sections for that computer. The only physical network port is the \"Broadcom NetXtreme Gigabit Ethernet - Teefer2 Miniport\"; that is the port which should be connected with the network device c37hgcr1W6r27, and not the port \"Teefer2 Miniport\".\r\n\r\n```\r\n    ...\r\n    ...\r\n    <NETWORKS>\r\n      <DESCRIPTION>Broadcom NetXtreme Gigabit Ethernet - Teefer2 Miniport</DESCRIPTION>\r\n      <IPADDRESS>10.36.1.132</IPADDRESS>\r\n      <IPDHCP>10.36.6.100</IPDHCP>\r\n      <IPGATEWAY>10.36.0.1</IPGATEWAY>\r\n      <IPMASK>255.255.254.0</IPMASK>\r\n      <IPSUBNET>10.36.0.0</IPSUBNET>\r\n      <MACADDR>00:16:35:74:07:25</MACADDR>\r\n      <PNPDEVICEID>PCI\\\\VEN_14E4&amp;DEV_1677&amp;SUBSYS_3006103C&amp;REV_01\\\\4&amp;1886B119&amp;0&amp;00E1</PNPDEVICEID>\r\n      <STATUS>Up</STATUS>\r\n      <TYPE>Ethernet</TYPE>\r\n      <VIRTUALDEV>0</VIRTUALDEV>\r\n    </NETWORKS>\r\n    <NETWORKS>\r\n      <DESCRIPTION>Minipuerto del administrador de paquetes</DESCRIPTION>\r\n      <MACADDR>00:16:35:74:07:25</MACADDR>\r\n      <PNPDEVICEID>ROOT\\\\MS_PSCHEDMP\\\\0000</PNPDEVICEID>\r\n      <STATUS>Down</STATUS>\r\n      <TYPE>Ethernet</TYPE>\r\n      <VIRTUALDEV>1</VIRTUALDEV>\r\n    </NETWORKS>\r\n    <NETWORKS>\r\n      <DESCRIPTION>Minipuerto WAN (PPTP)</DESCRIPTION>\r\n      <MACADDR></MACADDR>\r\n      <PNPDEVICEID>ROOT\\\\MS_PPTPMINIPORT\\\\0000</PNPDEVICEID>\r\n      <STATUS>Down</STATUS>\r\n      <TYPE>Red de área extensa (WAN)</TYPE>\r\n      <VIRTUALDEV>1</VIRTUALDEV>\r\n    </NETWORKS>\r\n    <NETWORKS>\r\n      <DESCRIPTION>Minipuerto WAN (PPPOE)</DESCRIPTION>\r\n      <MACADDR></MACADDR>\r\n      <PNPDEVICEID>ROOT\\\\MS_PPPOEMINIPORT\\\\0000</PNPDEVICEID>\r\n      <STATUS>Down</STATUS>\r\n      <TYPE>Red de área extensa (WAN)</TYPE>\r\n      <VIRTUALDEV>1</VIRTUALDEV>\r\n    </NETWORKS>\r\n    <NETWORKS>\r\n      <DESCRIPTION>Minipuerto del administrador de paquetes</DESCRIPTION>\r\n      <MACADDR>F4:9B:20:52:41:53</MACADDR>\r\n      <PNPDEVICEID>ROOT\\\\MS_PSCHEDMP\\\\0001</PNPDEVICEID>\r\n      <STATUS>Down</STATUS>\r\n      <TYPE>Ethernet</TYPE>\r\n      <VIRTUALDEV>1</VIRTUALDEV>\r\n    </NETWORKS>\r\n    <NETWORKS>\r\n      <DESCRIPTION>Teefer2 Miniport</DESCRIPTION>\r\n      <MACADDR>00:16:35:74:07:25</MACADDR>\r\n      <PNPDEVICEID>ROOT\\\\SYMC_TEEFER2MP\\\\0000</PNPDEVICEID>\r\n      <STATUS>Down</STATUS>\r\n      <TYPE>Ethernet</TYPE>\r\n      <VIRTUALDEV>1</VIRTUALDEV>\r\n    </NETWORKS>\r\n    <NETWORKS>\r\n      <DESCRIPTION>Teefer2 Miniport</DESCRIPTION>\r\n      <MACADDR>F4:9B:20:52:41:53</MACADDR>\r\n      <PNPDEVICEID>ROOT\\\\SYMC_TEEFER2MP\\\\0001</PNPDEVICEID>\r\n      <STATUS>Down</STATUS>\r\n      <TYPE>Ethernet</TYPE>\r\n      <VIRTUALDEV>1</VIRTUALDEV>\r\n    </NETWORKS>\r\n    ...\r\n    ...\r\n\n```\r\n\r\n\r\nThe exception to the rule are those computers with multiple network port which are configured as a Team or Bonding. The image IncorrectNetworkTeamPortConnections.png is an example of that. The following is an extract of the XML file of that computer.\r\n\r\n```\r\n    ...\r\n    ...\r\n    <NETWORKS>\r\n      <DESCRIPTION>WAN Miniport (PPTP)</DESCRIPTION>\r\n      <MACADDR></MACADDR>\r\n      <PNPDEVICEID>ROOT\\\\MS_PPTPMINIPORT\\\\0000</PNPDEVICEID>\r\n      <STATUS>Down</STATUS>\r\n      <TYPE>Wide Area Network (WAN)</TYPE>\r\n      <VIRTUALDEV>1</VIRTUALDEV>\r\n    </NETWORKS>\r\n    <NETWORKS>\r\n      <DESCRIPTION>WAN Miniport (PPPOE)</DESCRIPTION>\r\n      <MACADDR></MACADDR>\r\n      <PNPDEVICEID>ROOT\\\\MS_PPPOEMINIPORT\\\\0000</PNPDEVICEID>\r\n      <STATUS>Down</STATUS>\r\n      <TYPE>Wide Area Network (WAN)</TYPE>\r\n      <VIRTUALDEV>1</VIRTUALDEV>\r\n    </NETWORKS>\r\n    <NETWORKS>\r\n      <DESCRIPTION>HP NC7781 Gigabit Server Adapter</DESCRIPTION>\r\n      <MACADDR>00:13:21:07:53:80</MACADDR>\r\n      <PNPDEVICEID>PCI\\\\VEN_14E4&amp;DEV_16A7&amp;SUBSYS_00CB0E11&amp;REV_02\\\\3&amp;13C0B0C5&amp;2&amp;20</PNPDEVICEID>\r\n      <STATUS>Down</STATUS>\r\n      <TYPE>Ethernet</TYPE>\r\n      <VIRTUALDEV>0</VIRTUALDEV>\r\n    </NETWORKS>\r\n    <NETWORKS>\r\n      <DESCRIPTION>Microsoft Failover Cluster Virtual Adapter</DESCRIPTION>\r\n      <IPADDRESS>169.254.1.124</IPADDRESS>\r\n      <IPMASK>255.255.0.0</IPMASK>\r\n      <IPSUBNET>169.254.0.0</IPSUBNET>\r\n      <MACADDR>02:13:21:07:53:80</MACADDR>\r\n      <PNPDEVICEID>ROOT\\\\NETFT\\\\0000</PNPDEVICEID>\r\n      <SPEED>1073741824</SPEED>\r\n      <STATUS>Up</STATUS>\r\n      <TYPE>Ethernet</TYPE>\r\n      <VIRTUALDEV>1</VIRTUALDEV>\r\n    </NETWORKS>\r\n    <NETWORKS>\r\n      <DESCRIPTION>Microsoft Failover Cluster Virtual Adapter</DESCRIPTION>\r\n      <IPADDRESS6>fe80::d508:5214:68da:9a1f</IPADDRESS6>\r\n      <IPMASK6>ffff:ffff:ffff:ffff::</IPMASK6>\r\n      <IPSUBNET6>fe80::</IPSUBNET6>\r\n      <MACADDR>02:13:21:07:53:80</MACADDR>\r\n      <PNPDEVICEID>ROOT\\\\NETFT\\\\0000</PNPDEVICEID>\r\n      <SPEED>1073741824</SPEED>\r\n      <STATUS>Up</STATUS>\r\n      <TYPE>Ethernet</TYPE>\r\n      <VIRTUALDEV>1</VIRTUALDEV>\r\n    </NETWORKS>\r\n    <NETWORKS>\r\n      <DESCRIPTION>HP NC7781 Gigabit Server Adapter #2</DESCRIPTION>\r\n      <IPADDRESS>172.18.69.10</IPADDRESS>\r\n      <IPMASK>255.255.255.0</IPMASK>\r\n      <IPSUBNET>172.18.69.0</IPSUBNET>\r\n      <MACADDR>00:13:21:07:53:81</MACADDR>\r\n      <PNPDEVICEID>PCI\\\\VEN_14E4&amp;DEV_16A7&amp;SUBSYS_00CB0E11&amp;REV_02\\\\3&amp;13C0B0C5&amp;2&amp;28</PNPDEVICEID>\r\n      <SPEED>1000000000</SPEED>\r\n      <STATUS>Up</STATUS>\r\n      <TYPE>Ethernet</TYPE>\r\n      <VIRTUALDEV>0</VIRTUALDEV>\r\n    </NETWORKS>\r\n    <NETWORKS>\r\n      <DESCRIPTION>HP NC7170 Dual Gigabit Server Adapter</DESCRIPTION>\r\n      <MACADDR>00:13:21:07:53:80</MACADDR>\r\n      <PNPDEVICEID>PCI\\\\VEN_8086&amp;DEV_1010&amp;SUBSYS_00DB0E11&amp;REV_01\\\\3&amp;172E68DD&amp;0&amp;08</PNPDEVICEID>\r\n      <STATUS>Down</STATUS>\r\n      <TYPE>Ethernet</TYPE>\r\n      <VIRTUALDEV>0</VIRTUALDEV>\r\n    </NETWORKS>\r\n    <NETWORKS>\r\n      <DESCRIPTION>RAS Async Adapter</DESCRIPTION>\r\n      <MACADDR></MACADDR>\r\n      <PNPDEVICEID>SW\\\\{EEAB7790-C514-11D1-B42B-00805FC1270E}\\\\ASYNCMAC</PNPDEVICEID>\r\n      <STATUS>Down</STATUS>\r\n      <TYPE>Wide Area Network (WAN)</TYPE>\r\n      <VIRTUALDEV>1</VIRTUALDEV>\r\n    </NETWORKS>\r\n    <NETWORKS>\r\n      <DESCRIPTION>HP NC7170 Dual Gigabit Server Adapter #2</DESCRIPTION>\r\n      <IPADDRESS>192.168.0.10</IPADDRESS>\r\n      <IPMASK>255.255.255.0</IPMASK>\r\n      <IPSUBNET>192.168.0.0</IPSUBNET>\r\n      <MACADDR>00:11:0A:56:A5:C9</MACADDR>\r\n      <PNPDEVICEID>PCI\\\\VEN_8086&amp;DEV_1010&amp;SUBSYS_00DB0E11&amp;REV_01\\\\3&amp;172E68DD&amp;0&amp;09</PNPDEVICEID>\r\n      <SPEED>1000000000</SPEED>\r\n      <STATUS>Up</STATUS>\r\n      <TYPE>Ethernet</TYPE>\r\n      <VIRTUALDEV>0</VIRTUALDEV>\r\n    </NETWORKS>\r\n    <NETWORKS>\r\n      <DESCRIPTION>HP Network Team #1</DESCRIPTION>\r\n      <IPADDRESS>10.36.12.14</IPADDRESS>\r\n      <IPGATEWAY>10.36.12.1</IPGATEWAY>\r\n      <IPMASK>255.255.255.0</IPMASK>\r\n      <IPSUBNET>10.36.12.0</IPSUBNET>\r\n      <MACADDR>00:13:21:07:53:80</MACADDR>\r\n      <PNPDEVICEID>ROOT\\\\CQ_CPQTEAMMP\\\\0000</PNPDEVICEID>\r\n      <SPEED>1000000000</SPEED>\r\n      <STATUS>Up</STATUS>\r\n      <TYPE>Ethernet</TYPE>\r\n      <VIRTUALDEV>0</VIRTUALDEV>\r\n    </NETWORKS>\r\n    <NETWORKS>\r\n      <DESCRIPTION>Microsoft Tun Miniport Adapter</DESCRIPTION>\r\n      <MACADDR>02:00:54:55:4E:01</MACADDR>\r\n      <PNPDEVICEID>ROOT\\\\*TUNMP\\\\0000</PNPDEVICEID>\r\n      <SPEED>1073741824</SPEED>\r\n      <STATUS>Down</STATUS>\r\n      <TYPE>Ethernet</TYPE>\r\n      <VIRTUALDEV>1</VIRTUALDEV>\r\n    </NETWORKS>\r\n    ...\r\n    ...\r\n\n```\n\n\n"}}