Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for power supply on Extreme BOSS switches #9898

Merged
merged 20 commits into from Mar 9, 2019

Update boss.inc.php

  • Loading branch information...
ospfbgp committed Mar 4, 2019
commit ea24a0c7736d427a46e1c03388da0ebdaed7f5da
@@ -49,7 +49,7 @@
$ers_sensors[$key] = $value;
}
}
$ps_num = 1;
$ps_num = 0;
foreach ($ers_sensors as $index => $entry) {
//Get unit number
$unit_array = explode(".", $index);
@@ -58,15 +58,18 @@
if ($unit_array[0] == 4) {
if ($unit != $temp_unit) {
$ps_num = 1;
} else {
$ps_num++;
}
$descr = "Unit $unit: Power Supply $ps_num";
} else {
$descr = "Unit $unit: $entry[s5ChasComDescr]";
$descr = "Unit $unit: $entry[s5ChasComDescr]";
}
//Discover Sensors
discover_sensor($valid['sensor'], 'state', $device, $cur_oid.$index, "s5ChasComOperState.$index", $state_name, $descr, '1', '1', null, null, null, null, $entry['s5ChasComOperState']);
//Create Sensor To State Index
create_sensor_to_state_index($device, $state_name, "s5ChasComOperState.$index");
$temp_unit = $unit;
}
}
}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.