diff options
author | Ermal <eri@pfsense.org> | 2011-06-15 13:43:43 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-06-15 13:43:43 +0000 |
commit | 5aa7a46ce8281f11456bcc90a2a64e4e671de366 (patch) | |
tree | e13819627def3d62497bc7fae8e642318fc0349b /usr/local/www/carp_status.php | |
parent | 144fbff2a146d9eb3921e763f6bcc7bde39bf5f9 (diff) | |
download | pfsense-5aa7a46ce8281f11456bcc90a2a64e4e671de366.zip pfsense-5aa7a46ce8281f11456bcc90a2a64e4e671de366.tar.gz |
Ticket #1598. Correctly handle ipalias vips when re-enabling carp from the carp_status screen.
Diffstat (limited to 'usr/local/www/carp_status.php')
-rwxr-xr-x | usr/local/www/carp_status.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr/local/www/carp_status.php b/usr/local/www/carp_status.php index 12b8be9..e893dad 100755 --- a/usr/local/www/carp_status.php +++ b/usr/local/www/carp_status.php @@ -71,8 +71,6 @@ if($_POST['disablecarp'] <> "") { $savemsg = sprintf(gettext("%s IPs have been disabled. Please note that disabling does not survive a reboot."), $carp_counter); } else { $savemsg = gettext("CARP has been enabled."); - mwexec("/sbin/sysctl net.inet.carp.allow=1"); - interfaces_carp_setup(); if(is_array($config['virtualip']['vip'])) { $viparr = &$config['virtualip']['vip']; foreach ($viparr as $vip) { @@ -85,9 +83,15 @@ if($_POST['disablecarp'] <> "") { interface_carpdev_configure($vip); sleep(1); break; + case "ipalias": + if (substr($vip['interface'], 0, 3) == "vip") + interface_ipalias_configure($vip); + break; } } } + interfaces_carp_setup(); + mwexec("/sbin/sysctl net.inet.carp.allow=1"); } } |