Silence some uninitialized variable warnings in discover
This commit is contained in:
@@ -221,7 +221,7 @@ sub store_interfaces {
|
||||
|
||||
if (not $port) {
|
||||
debug sprintf ' [%s] interfaces - ignoring %s (no port mapping)',
|
||||
$device->ip, $port;
|
||||
$device->ip, $entry;
|
||||
next;
|
||||
}
|
||||
|
||||
@@ -336,7 +336,7 @@ sub store_wireless {
|
||||
|
||||
if (not $port) {
|
||||
debug sprintf ' [%s] wireless - ignoring %s (no port mapping)',
|
||||
$device->ip, $port;
|
||||
$device->ip, $iid;
|
||||
next;
|
||||
}
|
||||
|
||||
@@ -364,7 +364,7 @@ sub store_wireless {
|
||||
|
||||
if (not $port) {
|
||||
debug sprintf ' [%s] wireless - ignoring %s (no port mapping)',
|
||||
$device->ip, $port;
|
||||
$device->ip, $entry;
|
||||
next;
|
||||
}
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ Given a Device database object, and a working SNMP connection, connect to a
|
||||
device and discover the MAC addresses listed against each physical port
|
||||
without a neighbor.
|
||||
|
||||
If the device has VLANs, C<do_macsuck> will walk each VALN to get the MAC
|
||||
If the device has VLANs, C<do_macsuck> will walk each VLAN to get the MAC
|
||||
addresses from there.
|
||||
|
||||
It will also gather wireless client information if C<store_wireless_clients>
|
||||
|
||||
Reference in New Issue
Block a user