Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
5f2b50fc
Commit
5f2b50fc
authored
Mar 13, 2020
by
Jean-Claude BAU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VLANS: Change ppsi.conf generation
parent
bbc6b291
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
assembly_ppsi_conf.sh
userspace/rootfs_override/wr/bin/assembly_ppsi_conf.sh
+4
-4
No files found.
userspace/rootfs_override/wr/bin/assembly_ppsi_conf.sh
View file @
5f2b50fc
...
...
@@ -554,16 +554,16 @@ for i_port in {01..18}; do # scan all the physical ports
port_mode_trunk
=
$(
eval
"echo
\$
CONFIG_VLANS_PORT"
$i_port
"_MODE_TRUNK"
)
port_mode_unqualified
=
$(
eval
"echo
\$
CONFIG_VLANS_PORT"
$i_port
"_MODE_UNQUALIFIED"
)
port_mode_disabled
=
$(
eval
"echo
\$
CONFIG_VLANS_PORT"
$i_port
"_MODE_DISABLED"
)
raw_config
=
$(
eval
"echo
\$
CONFIG_VLANS_RAW_PORT_CONFIG"
)
port_vid
=
$(
eval
"echo
\$
CONFIG_VLANS_PORT"
$i_port
"_VID"
)
port_ptp_vid
=
$(
eval
"echo
\$
CONFIG_VLANS_PORT"
$i_port
"_PTP_VID"
)
if
[
-z
"
$port_ptp_vid
"
]
;
then
port_ptp_vid
=
$port_vid
fi
# check port mode
if
[
"
$port_mode_access
"
=
"y"
]
;
then
if
[
"
$raw_config
"
!=
"y"
]
;
then
port_ptp_vid
=
$port_vid
fi
# use "&> /dev/null" to avoid error when $ppsi_vlans
# is not a number
if
[
"
$port_ptp_vid
"
-ge
0
]
&> /dev/null
\
...
...
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