From 9cdc1caf5345a550bdd11360f99067bfbf9f5226 Mon Sep 17 00:00:00 2001 From: Ermal Date: Thu, 5 Dec 2013 16:16:24 +0000 Subject: Provide proper interface for getting carp status --- usr/local/www/carp_status.php | 2 +- usr/local/www/widgets/widgets/carp_status.widget.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/local/www/carp_status.php b/usr/local/www/carp_status.php index d01e746..5129047 100755 --- a/usr/local/www/carp_status.php +++ b/usr/local/www/carp_status.php @@ -148,7 +148,7 @@ include("head.inc"); $vhid = $carp['vhid']; $advskew = $carp['advskew']; $advbase = $carp['advbase']; - $carp_int = get_real_interface($carp['interface']); + $carp_int = get_real_interface($carp['interface']) . "@{$carp['vhid']}"; $status = get_carp_interface_status($carp_int); echo ""; $align = "valign='middle'"; diff --git a/usr/local/www/widgets/widgets/carp_status.widget.php b/usr/local/www/widgets/widgets/carp_status.widget.php index a7c55e8..e7cff99 100644 --- a/usr/local/www/widgets/widgets/carp_status.widget.php +++ b/usr/local/www/widgets/widgets/carp_status.widget.php @@ -49,7 +49,7 @@ $carp_enabled = get_carp_status(); $netmask = $carp['subnet_bits']; $vhid = $carp['vhid']; $advskew = $carp['advskew']; - $carp_int = get_real_interface($carp['interface']); + $carp_int = get_real_interface($carp['interface']) . "@{$carp['vhid']}"; $status = get_carp_interface_status($carp_int); ?> -- cgit v1.1