fix indentation per request

This commit is contained in:
Chris Freas 2016-05-24 13:52:04 -04:00
parent 94b2fcb9f0
commit cf39436865

View File

@ -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'];