mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-09-26 11:29:12 +02:00
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();
|
$interfaces_list = array();
|
||||||
foreach ($interfaces as $interface) {
|
foreach ($interfaces as $interface) {
|
||||||
// Get the interface name, removing " " characters and avoid "blank" interfaces
|
// Get the interface name, removing " " characters and avoid "blank" interfaces
|
||||||
if (isset($interface['ifName']) && $interface['ifName']['value'] != "") {
|
if (isset($interface['ifDescr']) && $interface['ifDescr']['value'] != "") {
|
||||||
$ifname = $interface['ifName']['value'];
|
|
||||||
}
|
|
||||||
else if (isset($interface['ifDescr']) && $interface['ifDescr']['value'] != "") {
|
|
||||||
$ifname = $interface['ifDescr']['value'];
|
$ifname = $interface['ifDescr']['value'];
|
||||||
}
|
}
|
||||||
|
else if (isset($interface['ifName']) && $interface['ifName']['value'] != "") {
|
||||||
|
$ifname = $interface['ifName']['value'];
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user