mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 16:14:40 +00:00
interfaces: wireless parents can't be assigned #411
And the clones are picked up by the config section...
This commit is contained in:
parent
50a9e241b5
commit
4e95140f55
@ -46,15 +46,17 @@ function list_interfaces() {
|
||||
// define config sections to fetch interfaces from.
|
||||
$config_sections = array();
|
||||
$config_sections['wireless.clone'] = array('descr' => 'cloneif', 'key' => 'cloneif');
|
||||
$config_sections['vlans.vlan'] = array('descr' => "tag,if,descr", 'format' => gettext('vlan %s on %s') . ' (%s)', 'key' => 'vlanif');
|
||||
$config_sections['vlans.vlan'] = array('descr' => 'tag,if,descr', 'format' => gettext('vlan %s on %s') . ' (%s)', 'key' => 'vlanif');
|
||||
$config_sections['bridges.bridged'] = array('descr' => 'bridgeif, descr', 'key' => 'bridgeif', 'format' => '%s (%s)');
|
||||
$config_sections['gifs.gif'] = array('descr' => 'remote-addr,descr', 'key' => 'gifif', 'format' => 'gif %s (%s)');
|
||||
$config_sections['gres.gre'] = array('descr' => 'remote-addr,descr', 'key' => 'greif', 'format' => 'gre %s (%s)');
|
||||
$config_sections['laggs.lagg'] = array('descr' => 'laggif, descr', 'key' => 'laggif', 'format' => '%s (%s)', 'fields' => 'members');
|
||||
$config_sections['laggs.lagg'] = array('descr' => 'laggif,descr', 'key' => 'laggif', 'format' => '%s (%s)', 'fields' => 'members');
|
||||
$config_sections['ppps.ppp'] = array('descr' => 'if,ports,descr,username', 'key' => 'if','format' => '%s (%s) - %s %s', 'fields' => 'type');
|
||||
|
||||
// add physical network interfaces
|
||||
foreach (get_interface_list() as $key => $intf_item) {
|
||||
if (match_wireless_interface($key)) {
|
||||
continue;
|
||||
$interfaces[$key] = array('descr' => $key . ' (' . $intf_item['mac'] . ')', 'section' => 'interfaces');
|
||||
}
|
||||
// collect interfaces from defined config sections
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user