removed warning about non numeric port line 199
This commit is contained in:
@@ -196,7 +196,7 @@ sub c_ip {
|
|||||||
foreach my $entry (keys %$bay_topo_ip){
|
foreach my $entry (keys %$bay_topo_ip){
|
||||||
my $port = $bay_topo_port->{$entry};
|
my $port = $bay_topo_port->{$entry};
|
||||||
next unless defined $port;
|
next unless defined $port;
|
||||||
next if $port == 0;
|
next if ($port =~ /^[\d\.]+$/ and $port == 0);
|
||||||
my $ip = $bay_topo_ip->{$entry};
|
my $ip = $bay_topo_ip->{$entry};
|
||||||
push(@{$ip_port{$port}},$ip);
|
push(@{$ip_port{$port}},$ip);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user