Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
4e95140f
Commit
4e95140f
authored
Mar 26, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
interfaces: wireless parents can't be assigned #411
And the clones are picked up by the config section...
parent
50a9e241
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
interfaces_assign.php
src/www/interfaces_assign.php
+4
-2
No files found.
src/www/interfaces_assign.php
View file @
4e95140f
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment