.. _vyos.rest.vyos_lldp_global_module: ************************** vyos.rest.vyos_lldp_global ************************** **Manage LLDP global configuration on VyOS via REST API.** Version added: 1.0.0 .. contents:: :local: :depth: 1 Synopsis -------- - Manage LLDP global configuration on VyOS via REST API. - Uses ``ansible_connection=ansible.netcommon.httpapi``. Parameters ---------- .. raw:: html
Parameter Choices/Defaults Comments
config
dictionary
LLDP global configuration.
addresses
list / elements=string
List of management addresses to advertise.
enable
boolean
    Choices:
  • no
  • yes
Enable LLDP service.
legacy_protocols
list / elements=string
    Choices:
  • cdp
  • edp
  • fdp
  • sonmp
Legacy protocols to support.
snmp
string
enable to enable LLDP SNMP subagent.
disable to disable it.
Requires SNMP service to be configured on the device.
state
string
    Choices:
  • merged ←
  • replaced
  • deleted
  • gathered
merged - merge config with existing.
replaced - replace existing config with provided.
deleted - delete LLDP configuration.
gathered - return current config without changes.

Examples -------- .. code-block:: yaml - name: Enable LLDP with management address and legacy protocols vyos.rest.vyos_lldp_global: config: enable: true addresses: - 192.0.2.17 legacy_protocols: - cdp - fdp state: merged - name: Replace LLDP configuration vyos.rest.vyos_lldp_global: config: enable: true addresses: - 192.0.2.99 state: replaced - name: Delete all LLDP configuration vyos.rest.vyos_lldp_global: state: deleted - name: Gather current LLDP configuration vyos.rest.vyos_lldp_global: state: gathered register: result Return Values ------------- Common return values are documented `here `_, the following are the fields unique to this module: .. raw:: html
Key Returned Description
after
dictionary
when changed
LLDP configuration after the module ran.

before
dictionary
always
LLDP configuration before the module ran.

commands
list
always
List of commands sent to the device.

gathered
dictionary
when state is gathered
Current LLDP configuration from the device.



Status ------ Authors ~~~~~~~ - VyOS Community (@vyos)