summaryrefslogtreecommitdiffstats
path: root/usr/local/www/widgets
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/widgets
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/widgets')
-rw-r--r--usr/local/www/widgets/widgets/carp_status.widget.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr/local/www/widgets/widgets/carp_status.widget.php b/usr/local/www/widgets/widgets/carp_status.widget.php
index e7cff99..3b52fd8 100644
--- a/usr/local/www/widgets/widgets/carp_status.widget.php
+++ b/usr/local/www/widgets/widgets/carp_status.widget.php
@@ -49,14 +49,13 @@ $carp_enabled = get_carp_status();
$netmask = $carp['subnet_bits'];
$vhid = $carp['vhid'];
$advskew = $carp['advskew'];
- $carp_int = get_real_interface($carp['interface']) . "@{$carp['vhid']}";
- $status = get_carp_interface_status($carp_int);
+ $status = get_carp_interface_status("{$carp['interface']}_vip{$vhid}");
?>
<tr>
<td class="vncellt" width="35%">
<img src="./themes/<?= $g['theme']; ?>/images/icons/icon_cablenic.gif" alt="cablenic" />&nbsp;
<strong><a href="/system_hasync.php">
- <span style="color:#000000"><?=htmlspecialchars($carp_int);?></span></a></strong>
+ <span style="color:#000000"><?=htmlspecialchars(convert_friendly_interface_to_friendly_descr($carp['interface']) . "@{$vhid}");?></span></a></strong>
</td>
<td width="65%" class="listr">
<?php
OpenPOWER on IntegriCloud