summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-02-26 12:50:12 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-02-26 12:50:12 -0800
commit351fe2d89bf5d125cb46334c3e7629e7fc1cbc1d (patch)
tree99e65bf21afbcc432d8ca6df31654994ced890fc /lib
parent34293dcc8968aed3ffc0e3cee754b2e86dd566f9 (diff)
downloadvyatta-cfg-351fe2d89bf5d125cb46334c3e7629e7fc1cbc1d.tar.gz
vyatta-cfg-351fe2d89bf5d125cb46334c3e7629e7fc1cbc1d.zip
Fix regex for VIF name extraction
Incorrect paren was breaking commands with VIF
Diffstat (limited to 'lib')
-rw-r--r--lib/Vyatta/Interface.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Vyatta/Interface.pm b/lib/Vyatta/Interface.pm
index 5e9e058..8f50675 100644
--- a/lib/Vyatta/Interface.pm
+++ b/lib/Vyatta/Interface.pm
@@ -88,7 +88,7 @@ sub new {
return unless $name;
# Strip off vif from name
- if ( $name =~ m/(\w)+\.(\d)+/ ) {
+ if ( $name =~ m/(\w+)\.(\d+)/ ) {
$dev = $1;
$vif = $2;
} else {