diff options
author | jim-p <jimp@pfsense.org> | 2012-02-28 12:48:53 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2012-02-28 12:57:46 -0500 |
commit | 0b29093bc42d5ed3fbcabacc8f09be99ac9dda7f (patch) | |
tree | be65668afd371dc6a6b29dfba387e6632633c8f7 | |
parent | d63b89af70f6de1f3ab7be2321dbc2f48ce61513 (diff) | |
download | pfsense-0b29093bc42d5ed3fbcabacc8f09be99ac9dda7f.zip pfsense-0b29093bc42d5ed3fbcabacc8f09be99ac9dda7f.tar.gz |
Show lagg protocol and member interfaces on Status > Interfaces. Implements #2242
-rw-r--r-- | etc/inc/pfsense-utils.inc | 6 | ||||
-rwxr-xr-x | usr/local/www/status_interfaces.php | 16 |
2 files changed, 22 insertions, 0 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index a65db13..b4a41d0 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -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); diff --git a/usr/local/www/status_interfaces.php b/usr/local/www/status_interfaces.php index e998ae1..248667a 100755 --- a/usr/local/www/status_interfaces.php +++ b/usr/local/www/status_interfaces.php @@ -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> |