From 578f20ec2f8c695cfe7ac8dc67338adf07b2a4dd Mon Sep 17 00:00:00 2001 From: Ermal Date: Wed, 8 Jun 2011 18:15:32 +0000 Subject: Actually correct vip check to be correct for all vip types. --- etc/inc/interfaces.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'etc') diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 59a5b0f..22a88a8 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -3277,9 +3277,12 @@ function link_interface_to_vips($int, $action = "") { foreach ($config['virtualip']['vip'] as $vip) { if ($int == $vip['interface']) { if ($action == "update") { - //interface_vip_bring_down($vip); - if (!does_interface_exist("vip{$vip['vhid']}")) + if ($vip['mode'] == "carp" && !does_interface_exist("vip{$vip['vhid']}")) interfaces_vips_configure($int); + else { + interface_vip_bring_down($vip); + interfaces_vips_configure($int); + } } else return $vip; } -- cgit v1.1