summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-09-20 12:58:27 +0000
committerErmal Luçi <eri@pfsense.org>2008-09-20 12:58:27 +0000
commitdbdd08afe135e5eb6e2a29f9d6cdd494d449fd41 (patch)
treed851acd086a0cfc473d310875a30eba342edbbcd /usr/local
parent4f9b0f01d4766f7760e4b14daa4be4598df1f743 (diff)
downloadpfsense-dbdd08afe135e5eb6e2a29f9d6cdd494d449fd41.zip
pfsense-dbdd08afe135e5eb6e2a29f9d6cdd494d449fd41.tar.gz
Do not allow lagg(4) members to be assigned.
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/interfaces_assign.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr/local/www/interfaces_assign.php b/usr/local/www/interfaces_assign.php
index 5606d9a..bd42ff1 100755
--- a/usr/local/www/interfaces_assign.php
+++ b/usr/local/www/interfaces_assign.php
@@ -36,7 +36,6 @@
##|*MATCH=interfaces_assign.php*
##|-PRIV
-
$pgtitle = array("Interfaces", "Assign network ports");
require("guiconfig.inc");
@@ -80,11 +79,16 @@ if (is_array($config['gres']['gre']) && count($config['gres']['gre'])) {
}
}
-/* add GRE interfaces */
+/* add LAGG 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;
+ /* LAGG members cannot be assigned */
+ $lagifs = explode(',', $lagg['members']);
+ foreach ($lagifs as $lagif)
+ if (isset($portlist[$lagif]))
+ unset($portlist[$lagif]);
}
}
OpenPOWER on IntegriCloud