Commit 73b1d444 authored by Franco Fichtner's avatar Franco Fichtner

interfaces: small simplification for #1455

parent 1dabd53d
...@@ -40,7 +40,7 @@ function if_group_interfaces() ...@@ -40,7 +40,7 @@ function if_group_interfaces()
$oc['if'] = $ifgen['ifname']; $oc['if'] = $ifgen['ifname'];
$oc['descr'] = $ifgen['ifname']; $oc['descr'] = $ifgen['ifname'];
$oc['virtual'] = true; $oc['virtual'] = true;
$oc['type'] = 'ifgroup'; $oc['type'] = 'group';
$interfaces[$ifgen['ifname']] = $oc; $interfaces[$ifgen['ifname']] = $oc;
} }
} }
......
...@@ -79,7 +79,7 @@ function if_openvpn_interfaces() ...@@ -79,7 +79,7 @@ function if_openvpn_interfaces()
$oic = array('enable' => true); $oic = array('enable' => true);
$oic['if'] = 'openvpn'; $oic['if'] = 'openvpn';
$oic['descr'] = 'OpenVPN'; $oic['descr'] = 'OpenVPN';
$oic['type'] = 'ifgroup'; $oic['type'] = 'group';
$oic['virtual'] = true; $oic['virtual'] = true;
$oic['networks'] = array(); $oic['networks'] = array();
$interfaces['openvpn'] = $oic; $interfaces['openvpn'] = $oic;
......
...@@ -184,7 +184,7 @@ legacy_html_escape_form_data($pconfig); ...@@ -184,7 +184,7 @@ legacy_html_escape_form_data($pconfig);
<select name="members[]" multiple="multiple" class="selectpicker" data-size="5" data-live-search="true"> <select name="members[]" multiple="multiple" class="selectpicker" data-size="5" data-live-search="true">
<?php <?php
foreach (legacy_config_get_interfaces(array("enable" => true)) as $ifn => $ifdetail): foreach (legacy_config_get_interfaces(array("enable" => true)) as $ifn => $ifdetail):
if (!empty($ifdetail['type']) && $ifdetail['type'] == 'ifgroup') { if (!empty($ifdetail['type']) && $ifdetail['type'] == 'group') {
continue; continue;
} }
?> ?>
......
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