diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-09-20 12:58:27 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-09-20 12:58:27 +0000 |
commit | dbdd08afe135e5eb6e2a29f9d6cdd494d449fd41 (patch) | |
tree | d851acd086a0cfc473d310875a30eba342edbbcd /usr/local | |
parent | 4f9b0f01d4766f7760e4b14daa4be4598df1f743 (diff) | |
download | pfsense-dbdd08afe135e5eb6e2a29f9d6cdd494d449fd41.zip pfsense-dbdd08afe135e5eb6e2a29f9d6cdd494d449fd41.tar.gz |
Do not allow lagg(4) members to be assigned.
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/interfaces_assign.php | 8 |
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]); } } |