From 6775757a6a21bebfb64ef121581658ecc0a3ffb1 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 7 May 2005 01:52:06 +0000 Subject: show carp interface even when disabled --- packages/carp_status.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/carp_status.php b/packages/carp_status.php index 3454d2f3..45f58af6 100644 --- a/packages/carp_status.php +++ b/packages/carp_status.php @@ -104,6 +104,7 @@ include("fbegin.inc"); "") + $carpint=0; foreach($config['installedpackages']['carp']['config'] as $carp) { $ipaddress = $carp['ipaddress']; $premption = $carp['premption']; @@ -116,15 +117,16 @@ if($config['installedpackages']['carp']['config'] <> "") $carp_int = find_carp_interface($ipaddress); // XXX - billm - should really 'ifconfig -a |grep carp:' and assign each interface found to an array // using vhid as identifier and pull from that instead of hitting ifconfig every time through this loop + // actually what should happen is find_carp_interface() should cache these items. -sullrich $status = get_carp_interface_status($carp_int); if(isset($carp['balancing'])) $balancing = "true"; else $balancing = "false"; if(isset($carp['premption'])) $premption = "true"; else $premption = "false"; - // if($synciface <> "") $sync_status = get_pfsync_interface_status($synciface); echo ""; $align = "valign='middle'"; if($carp_enabled == false) { $icon = ""; $status = "DISABLED"; + $carp_int = "carp" . $carpint; } else { if($status == "MASTER") { $icon = ""; @@ -136,6 +138,7 @@ if($config['installedpackages']['carp']['config'] <> "") echo "
" . $ipaddress . " "; echo "
{$icon}  " . $status . " "; echo ""; + $carpint++; } ?> -- cgit v1.2.3