Commit d0419d15 authored by Franco Fichtner's avatar Franco Fichtner

interfaces: fixup previous

parent 4e95140f
...@@ -45,7 +45,7 @@ function list_interfaces() { ...@@ -45,7 +45,7 @@ function list_interfaces() {
// define config sections to fetch interfaces from. // define config sections to fetch interfaces from.
$config_sections = array(); $config_sections = array();
$config_sections['wireless.clone'] = array('descr' => 'cloneif', 'key' => 'cloneif'); $config_sections['wireless.clone'] = array('descr' => 'cloneif,descr', 'key' => 'cloneif', 'format' => '%s (%s)');
$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['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['gifs.gif'] = array('descr' => 'remote-addr,descr', 'key' => 'gifif', 'format' => 'gif %s (%s)');
...@@ -57,6 +57,7 @@ function list_interfaces() { ...@@ -57,6 +57,7 @@ function list_interfaces() {
foreach (get_interface_list() as $key => $intf_item) { foreach (get_interface_list() as $key => $intf_item) {
if (match_wireless_interface($key)) { if (match_wireless_interface($key)) {
continue; continue;
}
$interfaces[$key] = array('descr' => $key . ' (' . $intf_item['mac'] . ')', 'section' => 'interfaces'); $interfaces[$key] = array('descr' => $key . ' (' . $intf_item['mac'] . ')', 'section' => 'interfaces');
} }
// collect interfaces from defined config sections // collect interfaces from defined config sections
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment