mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Allowed Add_Device API to set sysName (#10124)
sysName is a valid option via the WebGUI to set when SNMP is turned off. Currently you cannot set this via the API add device. This is to enable setting the sysName via the API.
This commit is contained in:
@ -397,6 +397,7 @@ function add_device()
|
||||
$snmp_disable = ($data['snmp_disable']);
|
||||
if ($snmp_disable) {
|
||||
$additional = array(
|
||||
'sysName' => $data['sysName'] ? mres($data['sysName']) : '',
|
||||
'os' => $data['os'] ? mres($data['os']) : 'ping',
|
||||
'hardware' => $data['hardware'] ? mres($data['hardware']) : '',
|
||||
'snmp_disable' => 1,
|
||||
|
Reference in New Issue
Block a user