summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-04-30 20:48:21 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-04-30 20:48:21 +0000
commita8963d2628e1f22e01af6750d69e452cb483957c (patch)
treea6d52d0cf561d56c806beefa856d2c7065d13f4f /usr/local
parent5980fbbeb34edf7155e0137b739bb2c7a81efefa (diff)
downloadpfsense-a8963d2628e1f22e01af6750d69e452cb483957c.zip
pfsense-a8963d2628e1f22e01af6750d69e452cb483957c.tar.gz
Do not forget VIP's as well.
Diffstat (limited to 'usr/local')
-rw-r--r--usr/local/pkg/carp_settings.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr/local/pkg/carp_settings.xml b/usr/local/pkg/carp_settings.xml
index 95c00dc..288cb5b 100644
--- a/usr/local/pkg/carp_settings.xml
+++ b/usr/local/pkg/carp_settings.xml
@@ -166,6 +166,12 @@
foreach($ifdescrs as $descr)
if($config['interfaces']['$descr']['ipaddr'] == $_POST["synchronizetoip"])
$input_errors[] = "CARP sync IP must be the backup firewall ip! You cannot specify this firewalls IP in this location.";
+ if($config['virtualip']['vip']) {
+ foreach($config['virtualip']['vip'] as $vip) {
+ if($vip['subnet'] == $_POST["synchronizetoip"])
+ $input_errors[] = "CARP sync IP must be the backup firewall ip! You cannot specify this firewalls IP in this location.";
+ }
+ }
</custom_php_validation_command>
<custom_add_php_command_late>
/* setup carp interfaces */
OpenPOWER on IntegriCloud