mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Added support for excluding devices from Oxidized api
This commit is contained in:
@@ -1167,3 +1167,15 @@ function alert_details($details) {
|
||||
|
||||
}//end alert_details()
|
||||
|
||||
function dynamic_override_config($type, $name, $device) {
|
||||
$attrib_val = get_dev_attrib($device,$name);
|
||||
if ($attrib_val == 'true') {
|
||||
$checked = 'checked';
|
||||
}
|
||||
else {
|
||||
$checked = '';
|
||||
}
|
||||
if ($type == 'checkbox') {
|
||||
return '<input type="checkbox" id="override_config" name="override_config" data-attrib="'.$name.'" data-device_id="'.$device['device_id'].'" data-size="small" '.$checked.'>';
|
||||
}
|
||||
}//end dynamic_override_config()
|
||||
|
Reference in New Issue
Block a user