summaryrefslogtreecommitdiffstats
path: root/etc/inc/interfaces.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-06-08 18:15:32 +0000
committerErmal <eri@pfsense.org>2011-06-08 18:15:32 +0000
commit578f20ec2f8c695cfe7ac8dc67338adf07b2a4dd (patch)
tree9adef17993a87d006550c0f42bdc673824469c35 /etc/inc/interfaces.inc
parent0042f5d964fc5c476d6c90f269ea6f49179ac016 (diff)
downloadpfsense-578f20ec2f8c695cfe7ac8dc67338adf07b2a4dd.zip
pfsense-578f20ec2f8c695cfe7ac8dc67338adf07b2a4dd.tar.gz
Actually correct vip check to be correct for all vip types.
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r--etc/inc/interfaces.inc7
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;
}
OpenPOWER on IntegriCloud