Fixed problems with list of interfaces in snmp walk wizard of interfaces. Tiquet: #2288
This commit is contained in:
parent
a74b7ed55f
commit
cc861fd3a1
|
@ -309,12 +309,12 @@ if ($create_modules) {
|
|||
$interfaces_list = array();
|
||||
foreach ($interfaces as $interface) {
|
||||
// Get the interface name, removing " " characters and avoid "blank" interfaces
|
||||
if (isset($interface['ifName']) && $interface['ifName']['value'] != "") {
|
||||
$ifname = $interface['ifName']['value'];
|
||||
}
|
||||
else if (isset($interface['ifDescr']) && $interface['ifDescr']['value'] != "") {
|
||||
if (isset($interface['ifDescr']) && $interface['ifDescr']['value'] != "") {
|
||||
$ifname = $interface['ifDescr']['value'];
|
||||
}
|
||||
else if (isset($interface['ifName']) && $interface['ifName']['value'] != "") {
|
||||
$ifname = $interface['ifName']['value'];
|
||||
}
|
||||
else {
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue