First cut at working poller for MIBs

This commit is contained in:
Paul Gear
2015-06-08 14:58:22 +10:00
parent 8f5bc4cdb6
commit 4af7dd8225
6 changed files with 129 additions and 18 deletions

View File

@@ -453,6 +453,16 @@ function get_dev_attribs($device)
return $attribs;
}
function is_dev_attrib_enabled($device, $attrib)
{
foreach (get_dev_attribs($device) as $name => $val) {
if ($name == $attrib && $val == 0) {
return false;
}
}
return true;
}
function get_dev_entity_state($device)
{
$state = array();