discoverying and polling VRF

This commit is contained in:
HenocKA
2016-01-26 15:22:49 +01:00
parent ea5d2c66e6
commit 0ac8f584b2
11 changed files with 957 additions and 682 deletions
+7 -1
View File
@@ -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?