diff --git a/includes/discovery/ports.inc.php b/includes/discovery/ports.inc.php index fef1fd5e3e..5a68c3fe13 100755 --- a/includes/discovery/ports.inc.php +++ b/includes/discovery/ports.inc.php @@ -17,7 +17,6 @@ foreach(explode("\n", $ports) as $entry){ $entry = trim($entry); list($ifIndex, $ifDescr) = explode("||", $entry, 2); - if(!strstr($entry, "irtual")) { $if = trim(strtolower($ifDescr)); $nullintf = 0; @@ -30,6 +29,7 @@ foreach(explode("\n", $ports) as $entry){ } } + if(empty($ifDescr)) { $nullintf = 1; } if($device['os'] == "catos" && strstr($if, "vlan") ) { $nullintf = 1; } $ifDescr = fixifName($ifDescr); if (preg_match('/serial[0-9]:/', $if)) { $nullintf = 1; }