P_LLDP_TIMER
code: tbd
# set
<module-index>/<port-index> P_LLDP_TIMER <reinit_delay> <tx_interval> <tx_hold_multiplier>
# get
<module-index>/<port-index> P_LLDP_TIMER ?
Description
This configures the LLDP timer settings for the port, including the reinit delay, transmission interval, and transmission hold multiplier.
Actions
set, get
Parameters
reinit_delay
: integer, When a port is disabled, LLDP is disabled or the switch is rebooted, a LLDP shutdown frame is transmitted to the neighboring units, signaling that the LLDP information is not valid anymore. Tx Reinit controls the amount of seconds between the shutdown frame and a new LLDP initialization. Default is 2, range is 1 to 10.tx_interval
: integer, this variable defines the time interval in seconds between transmissions during normal transmission periods. Default is 30, range is 1 to 3600.tx_hold_multiplier
: integer, the number of times the transmission interval is multiplied to determine the hold time for the LLDP packet. It is also used to determine the value of TTL that is carried in LLDP frames transmitted the port. Default is 4, range is 1 to 100.tx_delay
: integer, If some configuration is changed (for example, the IP address) a new LLDP frame is transmitted, but the time between the LLDP frames will always be at least the value oftx_delay
seconds.tx_delay
cannot be larger than 1/4 of thetx_interval
value. Valid values are restricted to 1 - 8192 seconds.
Note
The actual Time-to-Live value used in LLDP frame expressed by the following formula:
TTL = min(65535, (<tx_interval> * <tx_hold_multiplier>))
For example, if the value of <tx_interval>
is 30, and the value of <tx_hold_multiplier>
is 4, then the value 120 is encoded in the TTL field in the LLDP header.
Example
# set
input: 0/1 P_LLDP_TIMER 2 30 4 4
output: <OK>
# get
input: 0/1 P_LLDP_TIMER ?
output: 0/1 P_LLDP_TIMER 2 30 4 4