summaryrefslogtreecommitdiff
path: root/scripts/snmp
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2011-03-02 12:03:37 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2011-03-02 12:03:37 -0800
commit31f6c82c43c1ad4bb259fdd6a6ffd94ba204c1c1 (patch)
treec049bae1e7a9ed7f6b4eb83071bc5bf19b541b0e /scripts/snmp
parent4d1aee068909429f517e358b252355f7f7226802 (diff)
downloadvyatta-cfg-system-31f6c82c43c1ad4bb259fdd6a6ffd94ba204c1c1.tar.gz
vyatta-cfg-system-31f6c82c43c1ad4bb259fdd6a6ffd94ba204c1c1.zip
Fix script to handle more than 10 interfaces
Bug 6861 Fix submitted by devolish <ole.myhre@dataoppdrag.no>
Diffstat (limited to 'scripts/snmp')
-rwxr-xr-xscripts/snmp/if-mib-alias4
1 files changed, 2 insertions, 2 deletions
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;