mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
add eventlog on_create device
* add eventlog on_create device * add snmpV3 vars * styleci minor fix
This commit is contained in:
@@ -35,7 +35,37 @@ class Device extends BaseModel
|
||||
|
||||
public $timestamps = false;
|
||||
protected $primaryKey = 'device_id';
|
||||
protected $fillable = ['hostname', 'ip', 'status', 'status_reason', 'sysName', 'sysDescr', 'sysObjectID', 'hardware', 'version', 'features', 'serial', 'icon'];
|
||||
protected $fillable = [
|
||||
'hostname',
|
||||
'ip',
|
||||
'status',
|
||||
'status_reason',
|
||||
'sysName',
|
||||
'sysDescr',
|
||||
'sysObjectID',
|
||||
'hardware',
|
||||
'version',
|
||||
'features',
|
||||
'serial',
|
||||
'icon',
|
||||
'overwrite_ip',
|
||||
'os',
|
||||
'community',
|
||||
'port',
|
||||
'transport',
|
||||
'snmpver',
|
||||
'poller_group',
|
||||
'port_association_mode',
|
||||
'snmp_disable',
|
||||
// ---- snmpV3 fields ----
|
||||
'authlevel',
|
||||
'authname',
|
||||
'authpass',
|
||||
'authalgo',
|
||||
'cryptopass',
|
||||
'cryptoalgo',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'last_polled' => 'datetime',
|
||||
'status' => 'boolean',
|
||||
|
Reference in New Issue
Block a user