mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Show lagg protocol and member interfaces on Status > Interfaces. Implements #2242
This commit is contained in:
parent
d63b89af70
commit
0b29093bc4
@ -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);
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user