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
84
Issues
84
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
3aee7559
Commit
3aee7559
authored
Jul 17, 2018
by
Adam Wujek
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Kconfig: add LLDP tx interval
Signed-off-by:
Adam Wujek
<
adam.wujek@cern.ch
>
parent
9f860d10
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
Kconfig
Kconfig
+7
-0
lldpd.sh
userspace/rootfs_override/etc/init.d/lldpd.sh
+12
-0
No files found.
Kconfig
View file @
3aee7559
...
...
@@ -928,6 +928,13 @@ config LLDPD_DISABLE
Disable LLDP daemon to prevent sending LLDP frames. It may be useful
for networks not using LLDP or with a low latency requirement.
config LLDPD_TX_INTERVAL
int "LLDP TX interval"
default 5
depends on !LLDPD_DISABLE
help
Define how often LLDP frames are sent.
config LLDPD_MANAGEMENT_PORT_DISABLE
bool "Disable LLDP on the management port"
default n
...
...
userspace/rootfs_override/etc/init.d/lldpd.sh
View file @
3aee7559
...
...
@@ -51,6 +51,18 @@ start() {
echo
"# This configuration file was generated by
$0
at startup"
>
$LLDPD_CONFIG
echo
"# If you would like to change a lldpd configuration in runtime please consider using lldpcli"
>>
$LLDPD_CONFIG
echo
"configure system hostname '
$(
hostname
)
'"
>>
$LLDPD_CONFIG
tx_interval
=
5
if
[
!
-z
"
$CONFIG_LLDPD_TX_INTERVAL
"
]
;
then
tx_int
=
$CONFIG_LLDPD_TX_INTERVAL
# check if given value is an int
case
$tx_int
in
''
|
*
[!
0-9]
*
)
echo
-n
"wrong CONFIG_LLDPD_TX_INTERVAL "
$tx_int
". Using 5 as the default interval. "
;;
*
)
echo
tx_interval
=
$tx_int
;;
esac
fi
echo
"configure lldp tx-interval
$tx_interval
"
>>
$LLDPD_CONFIG
if
[
"
$CONFIG_LLDPD_MINIMUM_FRAME_SIZE
"
=
"y"
]
;
then
echo
"configure system description 'WR-SWITCH'"
>>
$LLDPD_CONFIG
else
...
...
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