$total = count($pculist);
-## Sort the pculist
-#$pcu_ids = array_map('get_pcuid', $pculist);
-#array_multisort($pcu_ids, SORT_ASC, SORT_NUMERIC, $pculist);
-
-#$dns_ids = array_map('get_dns', $pculist);
-#array_multisort($dns_ids, SORT_ASC, SORT_STRING, $pculist);
-
-#$dry_ids = array_map('get_dryrun', $pculist);
-#array_multisort($dry_ids, SORT_ASC, SORT_STRING, $pculist);
if ( $_GET['category'] )
{
$category = $_GET['category'];
}
}
-if ( $_GET['auth'] )
-{
- $auth = True;
-} else {
- $auth = False;
-}
-
//array_multisort($protocols, SORT_ASC, SORT_STRING, $pculist);
?>
<th><?= get_category_link("reboot", "Dry Run Results") ?></th>
<th><?= get_category_link("model", "Model") ?></th>
<th><?= get_category_link("node_ids", "Nodes") ?></th>
- <?php if ( $auth ): ?>
- <th>Username</th>
- <th>Password</th>
- <th>Notes</th>
- <?php endif; ?>
</tr>
<?php $count = 0; ?>
+<?php $reachable_nodes = 0; ?>
<?php foreach ( $pculist as $pcu ): ?>
<tr>
<td><?= $count ?></td>
<td bgcolor='<?= reboot_to_color($pcu['reboot']) ?>'><?= $pcu['reboot'] ?></td>
<td nowrap><?= $pcu['model'] ?></td>
<td><?= count( $pcu['node_ids'] ) ?></td>
- <?php if ( $auth ): ?>
- <td><?= ( $pcu['username'] ? $pcu['username'] : " " ) ?></td>
- <td><?= $pcu['password'] ?></td>
- <td><?= $pcu['notes'] ?></td>
- <?php endif; ?>
</tr>
+
+<?php if ( $pcu['reboot'] == "0" ) $reachable_nodes+=count($pcu['node_ids']); ?>
<?php $count += 1; ?>
<?php endforeach; ?>
</table>
+<b>Reachable Nodes:</b> <?= $reachable_nodes ?>
+
</body>
</html>