diff options
author | John Southworth <john.southworth@vyatta.com> | 2012-04-30 17:05:37 -0700 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2012-04-30 17:05:37 -0700 |
commit | 8de0cb5663f94756769786dbab977db741b58a34 (patch) | |
tree | 1eb3166670870ac92b66a6ea559643aafa9aacc1 /lib/Vyatta/Interface.pm | |
parent | 0a01ab5c519af81e967c3bd755f5d4bc2a0f0891 (diff) | |
download | vyatta-cfg-8de0cb5663f94756769786dbab977db741b58a34.tar.gz vyatta-cfg-8de0cb5663f94756769786dbab977db741b58a34.zip |
Match from beginning of the line for multilink device
Diffstat (limited to 'lib/Vyatta/Interface.pm')
-rwxr-xr-x | 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 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; |