summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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