diff --git a/includes/discovery/ports.inc.php b/includes/discovery/ports.inc.php index 951930e66b..ca4255d9ea 100755 --- a/includes/discovery/ports.inc.php +++ b/includes/discovery/ports.inc.php @@ -22,6 +22,14 @@ $if = trim(strtolower($ifDescr)); $nullintf = 0; foreach($config['bad_if'] as $bi) { if (strstr($if, $bi)) { $nullintf = 1; } } + if(is_array($config['bad_if_regexp'])) { + foreach($config['bad_if_regexp'] as $bi) { + if (preg_match($bi ."i", $if)) { + $nullintf = 1; + } + } + } + if($device['os'] == "catos" && strstr($if, "vlan") ) { $nullintf = 1; } $ifDescr = fixifName($ifDescr); if (preg_match('/serial[0-9]:/', $if)) { $nullintf = 1; }