f5os_lldp_config – Manage LLDP config

New in version 1.8.0.

Synopsis

  • Manages LLDP config.

Parameters

Parameter Choices/Defaults Configuration Comments
enabled
boolean
    Choices:
  • no ←
  • yes
Specifies whether to enable LLDP or not.
interfaces
dictionary
S
p
e
c
i
f
i
e
s
i
n
t
e
r
f
a
c
e
s
f
o
r
w
h
i
c
h
w
e
w
a
n
t
t
o
e
n
a
b
l
e
L
L
D
P
.
enabled
boolean
    Choices:
  • no ←
  • yes
Specify whether interface is enabled or not.
name
string
Specifies Interface to configure.
tlv_advertisement_state
string
    Choices:
  • rxonly
  • txrx
  • txonly
  • none
LLDP enables a network device to advertise information about itself to other devices on the network.
It enables network devices to receive information from neighboring devices.
tlv_map
string
Default:
"chassis-id, port-id, ttl"
For TLV Map, select the TLV device information that you want to transmit and/or receive.
Such as chassis ID, MAC Phy configuration, management address, MFS (maximum frame size), port description, port ID, and power MDI.
max_neighbors_per_port
integer
Default:
10
Specify the maximum number of LLDP neighbors for which LLDP data is retained.
reinitiate_delay
integer
Default:
2
Specify the minimum time interval, in seconds, an LLDP port waits before re-initializing an LLDP transmission.
This parameter value should lie between 0-65535.
state
string
    Choices:
  • present ←
  • absent
If present, this option creates LLDP configuration on specified remote host.
If absent, this option disables LLDP configuration on the device (if it exists).
system_description
string
Default:
""
Description of the System.
system_name
string
Default:
""
Name of the System.
tx_delay
integer
Default:
2
Specify the minimum time delay, in seconds, between successive LLDP frame transmissions.
This parameter value should lie between 0-65535.
tx_hold
integer
Default:
4
This parameter value should lie between 0-65535.
tx_interval
integer
Default:
30
Interval (in seconds) at which LLDP packets are sent to neighbors.
This parameter value should lie between 0-65535.

Examples

- name: Enable LLDP
  f5os_lldp_config:
    enabled: true
    system_name: test
    system_description: test description
    tx_interval: 30
    tx_hold: 4
    reinitiate_delay: 2
    tx_delay: 2
    max_neighbors_per_port: 13
    interfaces:
      name: 1.0
      enable: true
      tlv_advertisement_state: rxonly
      tlv_map: chassis-id port-id ttl system-name

Return Values

The following are the fields unique to this module:

Key Returned Description
enabled
boolean
changed
Specifies whether to enable LLDP or not.

Sample:
True
max_neighbors_per_port
integer
changed
Specify the maximum number of LLDP neighbors for which LLDP data is retained.

Sample:
2
reinitiate_delay
integer
changed
Specify the minimum time interval, in seconds, an LLDP port waits before re-initializing an LLDP transmission.

Sample:
2
system_description
string
changed
Description of the System.

Sample:
test description
system_name
string
changed
Name of the System.

Sample:
test
tx_delay
integer
changed
Specify the minimum time delay, in seconds, between successive LLDP frame transmissions.

Sample:
2
tx_hold
integer
changed
This parameter value should lie between 0-65535.

Sample:
4
tx_interval
integer
changed
Interval (in seconds) at which LLDP packets are sent to neighbors.

Sample:
30


Status

Authors

  • Prateek Ramani (@ramani)