summaryrefslogtreecommitdiffstats
path: root/etc/inc/interfaces.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-05-17 20:41:09 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-05-17 20:41:09 +0000
commit18ae7b3c85c7b2d20265b43817ffd80d64f68c17 (patch)
tree2b8873a73bc8811bce24c181a229e24c769a697b /etc/inc/interfaces.inc
parentd8898df4b3abd8de4ba59e0afc134fb94d170df8 (diff)
downloadpfsense-18ae7b3c85c7b2d20265b43817ffd80d64f68c17.zip
pfsense-18ae7b3c85c7b2d20265b43817ffd80d64f68c17.tar.gz
Ticket #1677 fixes
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r--etc/inc/interfaces.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index c473d76..73cd071 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -579,6 +579,14 @@ function interfaces_carp_bring_up_final() {
/* could not locate an array, return */
if(!is_array($viparr))
return;
+ $havecarp = false;
+ foreach ($viparr as $vip) {
+ /* bail if this isn't a carp VIP */
+ if ($vip['mode'] == "carp")
+ $havecarp = true;
+ }
+ if($havecarp == false)
+ return;
$carp_instances_counter = 0;
$counter = 0;
if($g['booting'])
OpenPOWER on IntegriCloud