diff options
author | Ermal <eri@pfsense.org> | 2011-06-08 18:15:32 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-06-08 18:15:32 +0000 |
commit | 578f20ec2f8c695cfe7ac8dc67338adf07b2a4dd (patch) | |
tree | 9adef17993a87d006550c0f42bdc673824469c35 | |
parent | 0042f5d964fc5c476d6c90f269ea6f49179ac016 (diff) | |
download | pfsense-578f20ec2f8c695cfe7ac8dc67338adf07b2a4dd.zip pfsense-578f20ec2f8c695cfe7ac8dc67338adf07b2a4dd.tar.gz |
Actually correct vip check to be correct for all vip types.
-rw-r--r-- | etc/inc/interfaces.inc | 7 |
1 files changed, 5 insertions, 2 deletions
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; } |