Split net_lldp into net_lldp (service) and net_lldp_interface (#26757)

This commit is contained in:
Ricardo Carrillo Cruz
2017-07-13 16:38:15 +02:00
committed by GitHub
parent 34c0abd106
commit 5719687920
3 changed files with 112 additions and 20 deletions

View File

@@ -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
"""