fix: fdb tables multiple IPs and IPs from other devices adding extra rows (#6930)

Fix missing IPs because the ARP entries are on different port_id
Update arp discovery to use snmpwalk_group() additional fix in that function
Fix removal of arp entries
Fix a debug output type in fdb discovery
This commit is contained in:
Tony Murray
2017-07-04 16:27:43 -05:00
committed by Neil Lathwood
parent 4a2f07cdca
commit b56c6b6adf
7 changed files with 103 additions and 74 deletions

View File

@@ -561,7 +561,7 @@ function snmpwalk_group($device, $oid, $mib = '', $depth = 1, $array = array())
// merge the parts into an array, creating keys if they don't exist
$tmp = &$array;
foreach ($parts as $part) {
$tmp = &$tmp[$part];
$tmp = &$tmp[trim($part, '"')];
}
$tmp = trim($value, "\" \n\r"); // assign the value as the leaf
}