summaryrefslogtreecommitdiffstats
path: root/usr/local/www/carp_status.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-04-05 20:13:44 +0000
committerErmal <eri@pfsense.org>2012-04-05 20:22:01 +0000
commit7b47bd4c3ce792e94eca430f22891eb1dd36bb3c (patch)
tree8c983217d31e50eda49d5622d30616d2bab91704 /usr/local/www/carp_status.php
parentc1a104c7c8cc61d103fe6eba8dd98a071074b4ec (diff)
downloadpfsense-7b47bd4c3ce792e94eca430f22891eb1dd36bb3c.zip
pfsense-7b47bd4c3ce792e94eca430f22891eb1dd36bb3c.tar.gz
Make vips vhid be unique per parent interface!
Diffstat (limited to 'usr/local/www/carp_status.php')
-rwxr-xr-xusr/local/www/carp_status.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/carp_status.php b/usr/local/www/carp_status.php
index 9058c38..f8fb7c3 100755
--- a/usr/local/www/carp_status.php
+++ b/usr/local/www/carp_status.php
@@ -84,7 +84,7 @@ if($_POST['disablecarp'] <> "") {
sleep(1);
break;
case "ipalias":
- if (substr($vip['interface'], 0, 3) == "vip")
+ if (strstr($vip['interface'], "_vip"))
interface_ipalias_configure($vip);
break;
}
@@ -159,7 +159,7 @@ include("head.inc");
$vhid = $carp['vhid'];
$advskew = $carp['advskew'];
$advbase = $carp['advbase'];
- $carp_int = "vip{$vhid}";
+ $carp_int = "{$carp['interface']}_vip{$vhid}";
$status = get_carp_interface_status($carp_int);
echo "<tr>";
$align = "valign='middle'";
OpenPOWER on IntegriCloud