potentially break all cisco versioning :P

git-svn-id: http://www.observium.org/svn/observer/trunk@2912 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2012-03-20 16:50:16 +00:00
parent 8b2901cfea
commit bd243db6dc
14 changed files with 105 additions and 55 deletions

View File

@@ -321,30 +321,6 @@ function is_odd($number)
return $number & 1; // 0 = even, 1 = odd
}
function isValidInterface($if)
{
global $config;
$if = strtolower($if);
$nullintf = 0;
foreach ($config['bad_if'] as $bi)
{
$pos = strpos($if, $bi);
if ($pos !== FALSE)
{
$nullintf = 1;
echo("$if matched $bi \n");
}
}
if (preg_match('/serial[0-9]:/', $if)) { $nullintf = '1'; }
if ($nullintf != '1')
{
return 1;
} else {
return 0;
}
}
function utime()
{
$time = explode(" ", microtime());