mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02:00
Removed commented code.
This commit is contained in:
@@ -130,19 +130,7 @@ if ($config['enable_inventory']) {
|
||||
echo '+';
|
||||
}//end if
|
||||
|
||||
// This entire if/else statement is no longer necessary as we fix $entPhysicalIndex at the start of the loop
|
||||
//if ($device['os'] == 'junos') {
|
||||
// $entPhysicalIndex appears as a numeric OID fragment
|
||||
// (string), so convert it to an "integer" for the
|
||||
// validation step below since it is stored in the DB as
|
||||
// an integer. This should be fixed.
|
||||
//list($first,$second) = explode('.', $entPhysicalIndex);
|
||||
//$entPhysicalIndexNoDots = $first.$second;
|
||||
//$valid[$entPhysicalIndexNoDots] = 1;
|
||||
//}
|
||||
//else {
|
||||
$valid[$entPhysicalIndex] = 1;
|
||||
//}
|
||||
$valid[$entPhysicalIndex] = 1;
|
||||
}//end if
|
||||
}//end foreach
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user