From 4ce77a6caddbe1cb76f58709deba20ba06903165 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20LU=C3=87I?= Date: Thu, 27 Nov 2014 15:13:34 +0100 Subject: Correct logic of skipping for gif/gre/bridge on top of _vips. Even though this is not anymore a problem in 10 since the vip is on the physical interface but for now its ok. --- etc/inc/interfaces.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'etc/inc/interfaces.inc') diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 4f32f62..24db3c4 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -443,7 +443,7 @@ function interfaces_bridge_configure($checkmember = 0, $realif = "") { } } else if ($checkmember == 2) { - if (strstr($bridge['if'], "_vip")) + if (!strstr($bridge['if'], "_vip")) continue; $members = explode(',', $bridge['members']); foreach ($members as $member) { @@ -747,7 +747,7 @@ function interfaces_gre_configure($checkparent = 0, $realif = "") { continue; } else if ($checkparent == 2) { - if (strstr($gre['if'], "_vip")) + if (!strstr($gre['if'], "_vip")) continue; if (empty($config['interfaces'][$gre['if']]) || $config['interfaces'][$gre['if']]['ipaddrv6'] != "track6") continue; @@ -828,7 +828,7 @@ function interfaces_gif_configure($checkparent = 0, $realif = "") { continue; } else if ($checkparent == 2) { - if (strstr($gif['if'], "_vip")) + if (!strstr($gif['if'], "_vip")) continue; if (empty($config['interfaces'][$gif['if']]) || $config['interfaces'][$gif['if']]['ipaddrv6'] != "track6") continue; -- cgit v1.1