From 1288bfc1dcedb693073239bb2571501dd26b8405 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 4 Feb 2008 21:09:59 +0000 Subject: When a CARP parent interface is down or disabled, ignore the CARP IP address as this will introduce a panic situation in FreeBSD. --- etc/inc/interfaces.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 2a933c5..d8c0a93 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -444,6 +444,9 @@ function interfaces_carp_configure() { for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) $iflist['opt' . $i] = 'opt' . $i; foreach($iflist as $if) { + /* ignore down or "disabled" interfaces */ + if (!isset($config['interfaces'][$if]['enable'])) + continue; $ww_subnet_ip = $config['interfaces'][$if]['ipaddr']; $ww_subnet_bits = $config['interfaces'][$if]['subnet']; if (ip_in_subnet($vip['subnet'], gen_subnet($ww_subnet_ip, $ww_subnet_bits) . "/" . $ww_subnet_bits)) -- cgit v1.1