diff options
author | Ermal <eri@pfsense.org> | 2010-11-30 15:14:15 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-11-30 15:15:09 +0000 |
commit | 0a1eabbe814498d962a3f06f288bab0c39e4b512 (patch) | |
tree | 7c6ef85f9f8c92eb5b4fb7ace3cc9723afcccfd4 /usr/local | |
parent | af0b07d30f02f0ac041ec700327675445465de75 (diff) | |
download | pfsense-0a1eabbe814498d962a3f06f288bab0c39e4b512.zip pfsense-0a1eabbe814498d962a3f06f288bab0c39e4b512.tar.gz |
Resolves #947. Blacklist interfaces to show as possible lagg members if they are present in a lagg already.
Diffstat (limited to 'usr/local')
-rw-r--r-- | usr/local/www/interfaces_lagg_edit.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr/local/www/interfaces_lagg_edit.php b/usr/local/www/interfaces_lagg_edit.php index b65597c..367b604 100644 --- a/usr/local/www/interfaces_lagg_edit.php +++ b/usr/local/www/interfaces_lagg_edit.php @@ -47,14 +47,18 @@ $a_laggs = &$config['laggs']['lagg']; $portlist = get_interface_list(); +$realifchecklist = array(); /* add LAGG interfaces */ if (is_array($config['laggs']['lagg']) && count($config['laggs']['lagg'])) { - foreach ($config['laggs']['lagg'] as $lagg) + foreach ($config['laggs']['lagg'] as $lagg) { unset($portlist[$lagg['laggif']]); + $laggiflist = explode(",", $lagg['members']); + foreach ($laggiflist as $tmpif) + $realifchecklist[get_real_interface($tmpif)] = $tmpif; + } } $checklist = get_configured_interface_list(false, true); -$realifchecklist = array(); foreach ($checklist as $tmpif) $realifchecklist[get_real_interface($tmpif)] = $tmpif; |