mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 18:38:25 +00:00
fix indentation per request
This commit is contained in:
parent
94b2fcb9f0
commit
cf39436865
@ -11,7 +11,7 @@ if ($config['enable_inventory']) {
|
||||
$entity_array = snmpwalk_cache_oid($device, 'jnxBoxAnatomy', $entity_array, 'JUNIPER-MIB');
|
||||
}
|
||||
elseif ($device['os'] == 'timos') {
|
||||
$entity_array = array();
|
||||
$entity_array = array();
|
||||
echo 'tmnxHwObjs';
|
||||
$entity_array = snmpwalk_cache_multi_oid($device, 'tmnxHwObjs', $entity_array, 'TIMETRA-CHASSIS-MIB', '+'.$config['mib_dir'].'/aos:'.$config['mib_dir']);
|
||||
}
|
||||
@ -44,7 +44,7 @@ if ($config['enable_inventory']) {
|
||||
$entPhysicalAssetID = $entry['entPhysicalAssetID'];
|
||||
// fix for issue 1865, $entPhysicalIndex, as it contains a quad dotted number on newer Junipers
|
||||
// using str_replace to remove all dots should fix this even if it changes in future
|
||||
$entPhysicalIndex = str_replace('.','',$entPhysicalIndex);
|
||||
$entPhysicalIndex = str_replace('.','',$entPhysicalIndex);
|
||||
}
|
||||
elseif ($device['os'] == 'timos') {
|
||||
$entPhysicalDescr = $entry['tmnxCardTypeDescription'];
|
||||
@ -62,7 +62,7 @@ if ($config['enable_inventory']) {
|
||||
$entPhysicalIsFRU = $entry['tmnxHwIsFRU'];
|
||||
$entPhysicalAlias = $entry['tmnxHwAlias'];
|
||||
$entPhysicalAssetID = $entry['tmnxHwAssetID'];
|
||||
$entPhysicalIndex = str_replace('.','',$entPhysicalIndex);
|
||||
$entPhysicalIndex = str_replace('.','',$entPhysicalIndex);
|
||||
}
|
||||
else {
|
||||
$entPhysicalDescr = $entry['entPhysicalDescr'];
|
||||
|
Loading…
Reference in New Issue
Block a user