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
02f5563a
Commit
02f5563a
authored
Jul 20, 2018
by
Adam Wujek
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rootfs: improve minimum LLDP frame size option
Signed-off-by:
Adam Wujek
<
adam.wujek@cern.ch
>
parent
67b78ba5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
0 deletions
+55
-0
wrs-user-manual.in
doc/wrs-user-manual.in
+51
-0
lldpd.sh
userspace/rootfs_override/etc/init.d/lldpd.sh
+4
-0
No files found.
doc/wrs-user-manual.in
View file @
02f5563a
...
...
@@ -947,6 +947,57 @@ appropriate way, before the respective service is started.
this option LLPD daemon includes only minimal set of information into
LLPD frames.
The table below contains comparison of LLDP frame's fields for standard
frame size and minimal frame size (with
@t
{
CONFIG
_
LLDPD
_
MINIMUM
_
FRAME
_
SIZE
}
option enabled). Size of some of
fields (like @t
{
System name
}
or @t
{
System Description
}
) depends on
a network configuration.
@multitable @columnfractions .25 .25 .35
@headitem Standard frame @tab Minimum frame @tab Description
@item 14
@tab 14
@tab ETH header
@item 9
@tab 9
@tab Chasis ID (with MAC)
@item 9
@tab 9
@tab Port ID (with MAC)
@item 4
@tab 4
@tab Time To Live
@item 2+len(System name)
@tab 2+len(System name)
@tab System name
@item 2+len(System desc.)
@tab 2+len(@t
{
WR-SWITCH
}
)
@tab System description
@item 6
@tab 0
@tab Capabilities
@item 14
@tab 0
@tab Management Address
@item 7
@tab 7
@tab Port description
@item 2
@tab 2
@tab End of LLDP frame
@item 69
+len(System name)
+len(System desc.)
@tab 58
+len(System name)
@tab Total length
@end multitable
@item CONFIG
_
HTTPD
_
DISABLE
Disable web interface on a switch.
...
...
userspace/rootfs_override/etc/init.d/lldpd.sh
View file @
02f5563a
...
...
@@ -65,6 +65,10 @@ start() {
if
[
"
$CONFIG_LLDPD_MINIMUM_FRAME_SIZE
"
=
"y"
]
;
then
echo
"configure system description 'WR-SWITCH'"
>>
$LLDPD_CONFIG
# disable capabilities-advertisements
echo
"unconfigure ports all lldp capabilities-advertisements"
>>
$LLDPD_CONFIG
# disable management ip advertisements
echo
"unconfigure ports all lldp management-addresses-advertisements"
>>
$LLDPD_CONFIG
else
echo
"configure system description 'WR-SWITCH:
$(
/wr/bin/wrsw_version
)
'"
>>
$LLDPD_CONFIG
fi
...
...
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