diff --git a/Info/Layer2/Bay.pm b/Info/Layer2/Bay.pm index 49ec0aba..66fb2310 100644 --- a/Info/Layer2/Bay.pm +++ b/Info/Layer2/Bay.pm @@ -196,7 +196,7 @@ sub c_ip { foreach my $entry (keys %$bay_topo_ip){ my $port = $bay_topo_port->{$entry}; next unless defined $port; - next if $port == 0; + next if ($port =~ /^[\d\.]+$/ and $port == 0); my $ip = $bay_topo_ip->{$entry}; push(@{$ip_port{$port}},$ip); }