From 002783d4e34a51ba54690170fd6c950f960810c9 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 9 Nov 2010 09:24:52 -0800 Subject: Fix lookup of community string Community may have optional client restriction --- scripts/vyatta-show-snmp.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/vyatta-show-snmp.pl b/scripts/vyatta-show-snmp.pl index 9c8e814..979234b 100755 --- a/scripts/vyatta-show-snmp.pl +++ b/scripts/vyatta-show-snmp.pl @@ -30,7 +30,7 @@ sub get_community { or return; my $community; while (<$cfg>) { - next unless m/^r[ow]community (\w+)$/; + next unless m/^r[ow]community (\w+)/; $community = $1; last; } -- cgit v1.2.3