From e17b828d64771dede158adee02e1e899435bca44 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 30 Apr 2007 20:48:27 +0000 Subject: Do not forget VIP's as well. --- usr/local/pkg/carp_settings.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/usr/local/pkg/carp_settings.xml b/usr/local/pkg/carp_settings.xml index a60a71b..30781a1 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."; + } + } /* setup carp interfaces */ -- cgit v1.1