From b5e17eb5e9239cf45a51d39f2a7a9726aa8f4fbb Mon Sep 17 00:00:00 2001 From: omnom62 Date: Tue, 2 Jun 2026 21:36:02 +1000 Subject: lldp_global module --- docs/vyos.rest.vyos_lldp_global_module.rst | 45 ++++++++++++++++++++++++++---- 1 file changed, 40 insertions(+), 5 deletions(-) (limited to 'docs') diff --git a/docs/vyos.rest.vyos_lldp_global_module.rst b/docs/vyos.rest.vyos_lldp_global_module.rst index 0f24668..9016792 100644 --- a/docs/vyos.rest.vyos_lldp_global_module.rst +++ b/docs/vyos.rest.vyos_lldp_global_module.rst @@ -18,6 +18,7 @@ Version added: 1.0.0 Synopsis -------- - Manage LLDP global configuration on VyOS via REST API. +- Uses ``ansible_connection=ansible.netcommon.httpapi``. @@ -45,6 +46,7 @@ Parameters +
LLDP global configuration.
@@ -61,6 +63,7 @@ Parameters +
List of management addresses to advertise.
@@ -80,6 +83,7 @@ Parameters +
Enable LLDP service.
@@ -102,6 +106,7 @@ Parameters +
Legacy protocols to support.
@@ -117,7 +122,9 @@ Parameters -
enable or disable.
+
enable to enable LLDP SNMP subagent.
+
disable to disable it.
+
Requires SNMP service to be configured on the device.
@@ -139,6 +146,10 @@ Parameters +
merged - merge config with existing.
+
replaced - replace existing config with provided.
+
deleted - delete LLDP configuration.
+
gathered - return current config without changes.
@@ -152,14 +163,34 @@ Examples .. code-block:: yaml - - vyos.rest.vyos_lldp_global: + - name: Enable LLDP with management address and legacy protocols + vyos.rest.vyos_lldp_global: config: enable: true - addresses: [192.0.2.17] - snmp: enable - legacy_protocols: [cdp, fdp] + 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 @@ -185,6 +216,7 @@ Common return values are documented `here when changed +
LLDP configuration after the module ran.

@@ -199,6 +231,7 @@ Common return values are documented `here always +
LLDP configuration before the module ran.

@@ -213,6 +246,7 @@ Common return values are documented `here always +
List of commands sent to the device.

@@ -227,6 +261,7 @@ Common return values are documented `here when state is gathered +
Current LLDP configuration from the device.

-- cgit v1.2.3