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
d0419d15
Commit
d0419d15
authored
Mar 26, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
interfaces: fixup previous
parent
4e95140f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
interfaces_assign.php
src/www/interfaces_assign.php
+2
-1
No files found.
src/www/interfaces_assign.php
View file @
d0419d15
...
@@ -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
...
...
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