Do not forget VIP's as well.

This commit is contained in:
Scott Ullrich 2007-04-30 20:48:27 +00:00
parent 36dd13f283
commit e17b828d64

View File

@ -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 */