From 31f6c82c43c1ad4bb259fdd6a6ffd94ba204c1c1 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Wed, 2 Mar 2011 12:03:37 -0800 Subject: Fix script to handle more than 10 interfaces Bug 6861 Fix submitted by devolish --- scripts/snmp/if-mib-alias | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/snmp') diff --git a/scripts/snmp/if-mib-alias b/scripts/snmp/if-mib-alias index 82431356..d8b3ea9f 100755 --- a/scripts/snmp/if-mib-alias +++ b/scripts/snmp/if-mib-alias @@ -14,7 +14,7 @@ # Portions created by Vyatta are Copyright (C) 2007 Vyatta, Inc. # All Rights Reserved. # -# Author: Stig Thormodsrud +# Author: Stephen Hemminger # Date: October 2010 # Description: script is run as net-snmp extension to read interface alias # @@ -63,7 +63,7 @@ sub get_next { if ($oid eq $BASE); die "Not a valid Object ID: $oid" - unless ($oid =~ /^([0-9.]*)\.(\d)$/); + unless ($oid =~ /^([0-9.]*)\.(\d+)$/); my $base = $1; my $ifindex = $2; -- cgit v1.2.3