From abb7fe7f3c8fadd5ef0b40f5505d56326054e981 Mon Sep 17 00:00:00 2001 From: Max Baker <> Date: Fri, 23 Apr 2004 20:18:08 +0000 Subject: [PATCH] removed small warning if no bay_topo_platform() entry was found in c_platform() --- Info/Layer2/Bay.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Info/Layer2/Bay.pm b/Info/Layer2/Bay.pm index 19706936..747abd38 100644 --- a/Info/Layer2/Bay.pm +++ b/Info/Layer2/Bay.pm @@ -249,7 +249,7 @@ sub c_platform { my %c_platform; foreach my $entry (keys %$bay_topo_platform){ - my $port = $bay_topo_port->{$entry}; + my $port = $bay_topo_port->{$entry} || 0; next if $port == 0; # For fake remotes (multiple IPs for a c_ip), use first found