diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Vyatta/Interface.pm | 2 |
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 { |