From 084e7f10bdcd701c4d2643e5ed286c3d824ba975 Mon Sep 17 00:00:00 2001 From: Stig Thormodsrud Date: Fri, 6 Mar 2009 20:16:59 -0800 Subject: Remove prefix mask on vip if present since it can't be using in arping. --- lib/Vyatta/Keepalived.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/Vyatta') 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 # -- cgit v1.2.3