diff options
author | Stig Thormodsrud <stig@io.vyatta.com> | 2009-03-06 20:16:59 -0800 |
---|---|---|
committer | Stig Thormodsrud <stig@io.vyatta.com> | 2009-03-06 20:16:59 -0800 |
commit | 084e7f10bdcd701c4d2643e5ed286c3d824ba975 (patch) | |
tree | 88bac426f7dc35914b37036edd88240ad38ae4dd /lib/Vyatta | |
parent | a9f1badfd6caf89f2c615eb3e8cebb1bddf76445 (diff) | |
download | vyatta-cfg-system-084e7f10bdcd701c4d2643e5ed286c3d824ba975.tar.gz vyatta-cfg-system-084e7f10bdcd701c4d2643e5ed286c3d824ba975.zip |
Remove prefix mask on vip if present since it can't be using in arping.
Diffstat (limited to 'lib/Vyatta')
-rwxr-xr-x | lib/Vyatta/Keepalived.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Vyatta/Keepalived.pm b/lib/Vyatta/Keepalived.pm index 2c6b2b28..96d4fe90 100755 --- a/lib/Vyatta/Keepalived.pm +++ b/lib/Vyatta/Keepalived.pm @@ -201,6 +201,11 @@ sub snoop_for_master { my $file = get_master_file($intf, $group); + # remove mask if vip has one + if ($vip =~ /([\d.]+)\/\d+/) { + $vip = $1; + } + # # set up common tshark parameters # |