Show lagg protocol and member interfaces on Status > Interfaces. Implements #2242

This commit is contained in:
jim-p 2012-02-28 12:48:53 -05:00
parent d63b89af70
commit 0b29093bc4
2 changed files with 22 additions and 0 deletions

View File

@ -1272,6 +1272,12 @@ function get_interface_info($ifdescr) {
else
$ifinfo['ssid'] = $matches[1];
}
if (preg_match("/laggproto (.*)$/", $ici, $matches)) {
$ifinfo['laggproto'] = $matches[1];
}
if (preg_match("/laggport: (.*)$/", $ici, $matches)) {
$ifinfo['laggport'][] = $matches[1];
}
}
foreach($wifconfiginfo as $ici) {
$elements = preg_split("/[ ]+/i", $ici);

View File

@ -260,6 +260,22 @@ include("head.inc");
<?=htmlspecialchars($ifinfo['media']);?>
</td>
</tr>
<?php endif; if ($ifinfo['laggproto']): ?>
<tr>
<td width="22%" class="vncellt"><?=gettext("LAGG Protocol");?></td>
<td width="78%" class="listr">
<?=htmlspecialchars($ifinfo['laggproto']);?>
</td>
</tr>
<?php endif; if (is_array($ifinfo['laggport'])): ?>
<tr>
<td width="22%" class="vncellt"><?=gettext("LAGG Ports");?></td>
<td width="78%" class="listr">
<?php foreach ($ifinfo['laggport'] as $laggport) { ?>
<?php echo htmlspecialchars($laggport); ?><br/>
<?php } ?>
</td>
</tr>
<?php endif; ?><?php if ($ifinfo['channel']): ?>
<tr>
<td width="22%" class="vncellt"><?=gettext("Channel");?></td>