Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
White Rabbit Switch - Software
Manage
Activity
Members
Labels
Plan
Issues
99
Issue boards
Milestones
Wiki
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
White Rabbit Switch - Software
Commits
5f2b50fc
Commit
5f2b50fc
authored
5 years ago
by
Jean-Claude BAU
Browse files
Options
Downloads
Patches
Plain Diff
VLANS: Change ppsi.conf generation
parent
bbc6b291
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
userspace/rootfs_override/wr/bin/assembly_ppsi_conf.sh
+4
-4
4 additions, 4 deletions
userspace/rootfs_override/wr/bin/assembly_ppsi_conf.sh
with
4 additions
and
4 deletions
userspace/rootfs_override/wr/bin/assembly_ppsi_conf.sh
+
4
−
4
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
\
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment