forgot the actual bug fix for previous

This commit is contained in:
Oliver Gorwits
2014-04-30 22:30:37 +01:00
parent 64951c3b9b
commit c8180e3ea6

View File

@@ -32,16 +32,8 @@ to your device's IP.
=cut
sub get_port_macs {
my $device = shift;
my $port_macs = {};
unless ( $device->in_storage ) {
debug sprintf
' [%s] get_port_macs - skipping device not yet discovered',
$device->ip;
return $port_macs;
}
my $dp_macs
= schema('netdisco')->resultset('DevicePort')
->search( { mac => { '!=' => [ -and => (undef, '00:00:00:00:00:00') ] } },