summaryrefslogtreecommitdiff
path: root/lib/Vyatta
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2012-04-30 17:05:37 -0700
committerJohn Southworth <john.southworth@vyatta.com>2012-04-30 17:05:37 -0700
commit8de0cb5663f94756769786dbab977db741b58a34 (patch)
tree1eb3166670870ac92b66a6ea559643aafa9aacc1 /lib/Vyatta
parent0a01ab5c519af81e967c3bd755f5d4bc2a0f0891 (diff)
downloadvyatta-cfg-8de0cb5663f94756769786dbab977db741b58a34.tar.gz
vyatta-cfg-8de0cb5663f94756769786dbab977db741b58a34.zip
Match from beginning of the line for multilink device
Diffstat (limited to 'lib/Vyatta')
-rwxr-xr-xlib/Vyatta/Interface.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Vyatta/Interface.pm b/lib/Vyatta/Interface.pm
index 4f587b8..3fce824 100755
--- a/lib/Vyatta/Interface.pm
+++ b/lib/Vyatta/Interface.pm
@@ -300,7 +300,7 @@ sub new {
$path .= " $vifpath $vif" if $vif;
# add the vif 1 to multilink paths since they don't have vif interfaces
# denoted by <if>.<vif> and only allow 1 vif to be set
- $path .= " vif 1" if ($dev =~ m/ml[\d]+$/);
+ $path .= " vif 1" if ($dev =~ m/^ml[\d]+$/);
$path .= " vrrp vrrp-group $vrid interface" if $vrid;
$type = 'vrrp' if $vrid;