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
1dc4d55e
Commit
1dc4d55e
authored
Jul 12, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
interfaces: flatten code block
parent
0ba0986a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
24 deletions
+19
-24
interfaces.inc
src/etc/inc/interfaces.inc
+19
-24
No files found.
src/etc/inc/interfaces.inc
View file @
1dc4d55e
...
@@ -1052,34 +1052,31 @@ function interfaces_configure()
...
@@ -1052,34 +1052,31 @@ function interfaces_configure()
$realif
=
$config
[
'interfaces'
][
$if
][
'if'
];
$realif
=
$config
[
'interfaces'
][
$if
][
'if'
];
if
(
strstr
(
$realif
,
"bridge"
))
{
if
(
strstr
(
$realif
,
"bridge"
))
{
$bridge_list
[
$if
]
=
$ifname
;
$bridge_list
[
$if
]
=
$ifname
;
}
elseif
(
strstr
(
$realif
,
"gre"
))
{
$delayed_list
[
$if
]
=
$ifname
;
}
elseif
(
strstr
(
$realif
,
"gif"
))
{
$delayed_list
[
$if
]
=
$ifname
;
}
elseif
(
strstr
(
$realif
,
"ovpn"
))
{
//echo "Delaying OpenVPN interface configuration...done.\n";
continue
;
}
elseif
(
!
empty
(
$config
[
'interfaces'
][
$if
][
'ipaddrv6'
])
&&
$config
[
'interfaces'
][
$if
][
'ipaddrv6'
]
==
"track6"
)
{
$track6_list
[
$if
]
=
$ifname
;
}
else
{
}
else
{
if
(
strstr
(
$realif
,
"gre"
))
{
if
(
file_exists
(
"/var/run/booting"
))
{
$delayed_list
[
$if
]
=
$ifname
;
printf
(
gettext
(
"Configuring %s interface..."
),
$ifname
);
}
elseif
(
strstr
(
$realif
,
"gif"
))
{
}
$delayed_list
[
$if
]
=
$ifname
;
interface_configure
(
$if
,
$reload
);
}
elseif
(
strstr
(
$realif
,
"ovpn"
))
{
if
(
file_exists
(
"/var/run/booting"
))
{
//echo "Delaying OpenVPN interface configuration...done.\n";
echo
gettext
(
"done."
)
.
"
\n
"
;
continue
;
}
elseif
(
!
empty
(
$config
[
'interfaces'
][
$if
][
'ipaddrv6'
])
&&
$config
[
'interfaces'
][
$if
][
'ipaddrv6'
]
==
"track6"
)
{
$track6_list
[
$if
]
=
$ifname
;
}
else
{
if
(
file_exists
(
"/var/run/booting"
))
{
printf
(
gettext
(
"Configuring %s interface..."
),
$ifname
);
}
interface_configure
(
$if
,
$reload
);
if
(
file_exists
(
"/var/run/booting"
))
{
echo
gettext
(
"done."
)
.
"
\n
"
;
}
}
}
}
}
}
}
/*
/*
* NOTE: The following function parameter consists of
* NOTE: The following function parameter consists of
* 1 - Do not load gre/gif/bridge with parent/member as vip
* 1 - Do not load gre/gif/bridge with parent/member as vip
* 2 - Do load gre/gif/bridge with parent/member as vip
* 2 - Do load gre/gif/bridge with parent/member as vip
*/
*/
/* set up GRE virtual interfaces */
/* set up GRE virtual interfaces */
interfaces_gre_configure
(
1
);
interfaces_gre_configure
(
1
);
...
@@ -1094,9 +1091,7 @@ function interfaces_configure()
...
@@ -1094,9 +1091,7 @@ function interfaces_configure()
if
(
file_exists
(
"/var/run/booting"
))
{
if
(
file_exists
(
"/var/run/booting"
))
{
printf
(
gettext
(
"Configuring %s interface..."
),
$ifname
);
printf
(
gettext
(
"Configuring %s interface..."
),
$ifname
);
}
}
interface_configure
(
$if
,
$reload
);
interface_configure
(
$if
,
$reload
);
if
(
file_exists
(
"/var/run/booting"
))
{
if
(
file_exists
(
"/var/run/booting"
))
{
echo
gettext
(
"done."
)
.
"
\n
"
;
echo
gettext
(
"done."
)
.
"
\n
"
;
}
}
...
...
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