mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02:00
ignore iftypes config option and checker
git-svn-id: http://www.observium.org/svn/observer/trunk@2934 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -611,6 +611,17 @@ function is_port_valid($port, $device)
|
||||
}
|
||||
}
|
||||
}
|
||||
if (is_array($config['bad_iftype']))
|
||||
{
|
||||
foreach ($config['bad_iftype'] as $bi)
|
||||
{
|
||||
if (strstr($port['ifType'], $bi))
|
||||
{
|
||||
$valid = 0;
|
||||
if ($debug) { echo("ignored ifType : ".$port['ifType']." (matched: ".$bi." )"); }
|
||||
}
|
||||
}
|
||||
}
|
||||
if (empty($port['ifDescr'])) { $valid = 0; }
|
||||
if ($device['os'] == "catos" && strstr($if, "vlan")) { $valid = 0; }
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user