summaryrefslogtreecommitdiffstats
path: root/usr/local/www/carp_status.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-12-06 19:16:34 +0000
committerErmal <eri@pfsense.org>2013-12-06 19:16:34 +0000
commit0c21eb70b6f830e2c1edc06597c2e0bd443ed855 (patch)
tree44ec1b7260627acf632391edb9814fb5eb5401f0 /usr/local/www/carp_status.php
parent86c135def224d010ac057f283b3a02f9699cb91a (diff)
downloadpfsense-0c21eb70b6f830e2c1edc06597c2e0bd443ed855.zip
pfsense-0c21eb70b6f830e2c1edc06597c2e0bd443ed855.tar.gz
Use _vip as identified for CARP vip IPs to allow easier upgrade code. This way only ipaliases on carp need to be upgraded.
Diffstat (limited to 'usr/local/www/carp_status.php')
-rwxr-xr-xusr/local/www/carp_status.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr/local/www/carp_status.php b/usr/local/www/carp_status.php
index 5129047..9967484 100755
--- a/usr/local/www/carp_status.php
+++ b/usr/local/www/carp_status.php
@@ -148,8 +148,7 @@ include("head.inc");
$vhid = $carp['vhid'];
$advskew = $carp['advskew'];
$advbase = $carp['advbase'];
- $carp_int = get_real_interface($carp['interface']) . "@{$carp['vhid']}";
- $status = get_carp_interface_status($carp_int);
+ $status = get_carp_interface_status("{$carp['interface']}_vip{$carp['vhid']}");
echo "<tr>";
$align = "valign='middle'";
if($carp_enabled == false) {
@@ -164,7 +163,7 @@ include("head.inc");
$icon = "<img {$align} src='/themes/".$g['theme']."/images/icons/icon_log.gif'>";
}
}
- echo "<td class=\"listlr\"><center>" . $carp_int . "&nbsp;</td>";
+ echo "<td class=\"listlr\"><center>" . convert_friendly_interface_to_friendly_descr($carp['interface']) . "@{$vhid} &nbsp;</td>";
echo "<td class=\"listlr\"><center>" . $ipaddress . "&nbsp;</td>";
echo "<td class=\"listlr\"><center>{$icon}&nbsp;&nbsp;" . $status . "&nbsp;</td>";
echo "</tr>";
OpenPOWER on IntegriCloud