Merge branch 'master' into og-pluggable-daemon

This commit is contained in:
Oliver Gorwits
2014-05-17 08:00:02 +01:00
11 changed files with 52 additions and 37 deletions

View File

@@ -68,7 +68,7 @@ sub do_macsuck {
# cache the device ports to save hitting the database for many single rows
my $device_ports = {map {($_->port => $_)}
$device->ports(undef, {prefetch => 'neighbor_alias'})->all};
my $port_macs = get_port_macs($device);
my $port_macs = get_port_macs();
my $interfaces = $snmp->interfaces;
# get forwarding table data via basic snmp connection
@@ -367,7 +367,7 @@ sub _walk_fwtable {
$device->ip, $mac, $port, $remote;
# continue!!
}
else {
elsif (not setting('macsuck_bleed')) {
debug sprintf
' [%s] macsuck %s - port %s is detected uplink - skipping.',
$device->ip, $mac, $port;