From 3bb33fa8d42b144ebba0b88447bbd6074207491b Mon Sep 17 00:00:00 2001 From: Brian De Wolf Date: Mon, 27 Jun 2011 16:06:56 -0700 Subject: [PATCH] Fix syntax errors in L3 changes Fix some syntax errors in my improvement code for L3 so that it actually runs. --- Info/Layer3.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Info/Layer3.pm b/Info/Layer3.pm index 5b895f68..d179283d 100644 --- a/Info/Layer3.pm +++ b/Info/Layer3.pm @@ -162,7 +162,7 @@ sub root_ip { return $router_ip if (( defined $router_ip ) and ( $router_ip ne '0.0.0.0' ) - and ( grep { $_ eq $router_ip } (keys %ospf_ip)) ) + and ( grep { $_ eq $router_ip } (keys %$ospf_ip)) and ( $l3->snmp_connect_ip($router_ip) ) ); # return the first one found here (should be only one)