mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Split net_lldp into net_lldp (service) and net_lldp_interface (#26757)
This commit is contained in:
committed by
GitHub
parent
34c0abd106
commit
5719687920
@@ -29,37 +29,24 @@ DOCUMENTATION = """
|
||||
module: net_lldp
|
||||
version_added: "2.4"
|
||||
author: "Ricardo Carrillo Cruz (@rcarrillocruz)"
|
||||
short_description: Manage LLDP configuration on network devices
|
||||
short_description: Manage LLDP service configuration on network devices
|
||||
description:
|
||||
- This module provides declarative management of LLDP configuration
|
||||
- This module provides declarative management of LLDP service configuration
|
||||
on network devices.
|
||||
options:
|
||||
interfaces:
|
||||
description: List of interfaces LLDP should be configured on
|
||||
purge:
|
||||
description:
|
||||
- Purge interfaces not defined in the interfaces parameter.
|
||||
default: no
|
||||
state:
|
||||
description:
|
||||
- State of the LLDP configuration.
|
||||
- State of the LLDP service configuration.
|
||||
default: present
|
||||
choices: ['present', 'absent']
|
||||
"""
|
||||
|
||||
EXAMPLES = """
|
||||
- name: Enable LLDP globally
|
||||
- name: Enable LLDP service
|
||||
net_lldp:
|
||||
state: present
|
||||
|
||||
- name: Enable LLDP on specific interfaces
|
||||
net_lldp:
|
||||
interfaces:
|
||||
- eth1
|
||||
- eth2
|
||||
state: present
|
||||
|
||||
- name: Disable LLDP globally
|
||||
- name: Disable LLDP service
|
||||
net_lldp:
|
||||
state: lldp
|
||||
"""
|
||||
@@ -70,6 +57,5 @@ commands:
|
||||
returned: always, except for the platforms that use Netconf transport to manage the device.
|
||||
type: list
|
||||
sample:
|
||||
- set service lldp eth1
|
||||
- set service lldp eth2
|
||||
- set service lldp
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user