summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-07-25 20:51:16 +0000
committerErmal Luçi <eri@pfsense.org>2008-07-25 20:51:16 +0000
commitc720925c17709d1f6066066fd1216ceef84d5b01 (patch)
tree62575f4f18387de6802145b02c908284342998b1 /usr
parented00d8e5191966ec0b253cc7a2b2dd6793c8315e (diff)
downloadpfsense-c720925c17709d1f6066066fd1216ceef84d5b01.zip
pfsense-c720925c17709d1f6066066fd1216ceef84d5b01.tar.gz
Display the lagg interface to the interfaces assign page.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/interfaces_assign.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/usr/local/www/interfaces_assign.php b/usr/local/www/interfaces_assign.php
index 88f471c..436e41c 100755
--- a/usr/local/www/interfaces_assign.php
+++ b/usr/local/www/interfaces_assign.php
@@ -72,6 +72,15 @@ if (is_array($config['gres']['gre']) && count($config['gres']['gre'])) {
}
}
+/* add GRE interfaces */
+if (is_array($config['laggs']['lagg']) && count($config['laggs']['lagg'])) {
+ foreach ($config['laggs']['lagg'] as $lagg) {
+ $portlist[$lagg['laggif']] = $lagg;
+ $portlist[$lagg['laggif']]['islagg'] = true;
+ }
+}
+
+
/* add PPP interfaces */
if (is_array($config['ppps']['ppp']) && count($config['ppps']['ppp'])) {
$i = 0;
@@ -347,6 +356,11 @@ if(file_exists("/var/run/interface_mismatch_reboot_needed"))
if ($portinfo['descr'])
$descr .= " (" . $portinfo['descr'] . ")";
echo htmlspecialchars($descr);
+ } elseif ($portinfo['islagg']) {
+ $descr = strtoupper($portinfo['laggif']);
+ if ($portinfo['descr'])
+ $descr .= " (" . $portinfo['descr'] . ")";
+ echo htmlspecialchars($descr);
} else
echo htmlspecialchars($portname . " (" . $portinfo['mac'] . ")");
?>
OpenPOWER on IntegriCloud