From ae1b1838552820a6de293ab69ad1574798c1ebfc Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Fri, 28 Mar 2014 17:41:48 -0400 Subject: [PATCH] Add LLDP module --- CHANGELOG.md | 1 + library/net_infrastructure/lldp | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8597aec3166..8b27b880300 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -38,6 +38,7 @@ New Modules: * system: capabilities * net_infrastructure: bigip_facts * net_infrastructure: dnssimple +* net_infrastructure: lldp * web_infrastructure: apache2_module * cloud: digital_ocean_domain * cloud: digital_ocean_sshkey diff --git a/library/net_infrastructure/lldp b/library/net_infrastructure/lldp index 047cd39d0b2..efe4c8ab2ec 100755 --- a/library/net_infrastructure/lldp +++ b/library/net_infrastructure/lldp @@ -19,6 +19,7 @@ import subprocess DOCUMENTATION = ''' --- module: lldp +version_added: 1.6 short_description: get details reported by lldp description: - Reads data out of lldpctl @@ -76,8 +77,7 @@ def main(): except TypeError: module.fail_json(msg="lldpctl command failed. is lldpd running?") -# this is magic, see lib/ansible/module_common.py -#<> - +# import module snippets +from ansible.module_utils.basic import * main()