diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-05-07 01:52:06 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-05-07 01:52:06 +0000 |
commit | 6775757a6a21bebfb64ef121581658ecc0a3ffb1 (patch) | |
tree | 85882b3497cfdfdbd8a3642f3868e710548d3b26 /packages/carp_status.php | |
parent | f3670764c4bf045ca9e3b33f916b34f541d49d9b (diff) | |
download | pfsense-packages-6775757a6a21bebfb64ef121581658ecc0a3ffb1.tar.gz pfsense-packages-6775757a6a21bebfb64ef121581658ecc0a3ffb1.tar.bz2 pfsense-packages-6775757a6a21bebfb64ef121581658ecc0a3ffb1.zip |
show carp interface even when disabled
Diffstat (limited to 'packages/carp_status.php')
-rw-r--r-- | packages/carp_status.php | 5 |
1 files changed, 4 insertions, 1 deletions
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"); <?php if($config['installedpackages']['carp']['config'] <> "") + $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 "<tr>"; $align = "valign='middle'"; if($carp_enabled == false) { $icon = "<img {$align} src='/block.gif'>"; $status = "DISABLED"; + $carp_int = "carp" . $carpint; } else { if($status == "MASTER") { $icon = "<img {$align} src='/pass.gif'>"; @@ -136,6 +138,7 @@ if($config['installedpackages']['carp']['config'] <> "") echo "<td class=\"listlr\"><center>" . $ipaddress . " </td>"; echo "<td class=\"listlr\"><center>{$icon} " . $status . " </td>"; echo "</tr>"; + $carpint++; } ?> |