mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 16:04:35 +02:00
discoverying and polling VRF
This commit is contained in:
@@ -750,8 +750,14 @@ function snmp_gen_auth(&$device) {
|
||||
$cmd = '';
|
||||
|
||||
if ($device['snmpver'] === 'v3') {
|
||||
|
||||
$cmd = " -v3 -n '' -l '".$device['authlevel']."'";
|
||||
|
||||
|
||||
//add context if exist context
|
||||
if(key_exists('context_name', $device)){
|
||||
$cmd = " -v3 -n '".$device['context_name']."' -l '".$device['authlevel']."'";
|
||||
}
|
||||
|
||||
if ($device['authlevel'] === 'noAuthNoPriv') {
|
||||
// We have to provide a username anyway (see Net-SNMP doc)
|
||||
// FIXME: There are two other places this is set - why are they ignored here?
|
||||
|
||||
Reference in New Issue
Block a user