mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
update to allow NG interfaces on FreeBSD
git-svn-id: http://www.observium.org/svn/observer/trunk@423 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@ -37,7 +37,9 @@
|
||||
}
|
||||
$ifDescr = fixifName($ifDescr);
|
||||
if (preg_match('/serial[0-9]:/', $if)) { $nullintf = '1'; }
|
||||
if (preg_match('/ng[0-9]+$/', $if)) { $nullintf = '1'; }
|
||||
if(!$config['allow_ng']) {
|
||||
if (preg_match('/ng[0-9]+$/', $if)) { $nullintf = '1'; }
|
||||
}
|
||||
if ($nullintf == 0) {
|
||||
if(mysql_result(mysql_query("SELECT COUNT(*) FROM `interfaces` WHERE `device_id` = '".$device['device_id']."' AND `ifIndex` = '$ifIndex'"), 0) == '0') {
|
||||
mysql_query("INSERT INTO `interfaces` (`device_id`,`ifIndex`,`ifDescr`) VALUES ('".$device['device_id']."','$ifIndex','$ifDescr')");
|
||||
|
Reference in New Issue
Block a user