From 8de0cb5663f94756769786dbab977db741b58a34 Mon Sep 17 00:00:00 2001 From: John Southworth Date: Mon, 30 Apr 2012 17:05:37 -0700 Subject: Match from beginning of the line for multilink device --- lib/Vyatta/Interface.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 . 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; -- cgit v1.2.3