Add LLDP module
This commit is contained in:
parent
fb82e1f942
commit
3f6ddfb676
1 changed files with 3 additions and 3 deletions
|
@ -19,6 +19,7 @@ import subprocess
|
||||||
DOCUMENTATION = '''
|
DOCUMENTATION = '''
|
||||||
---
|
---
|
||||||
module: lldp
|
module: lldp
|
||||||
|
version_added: 1.6
|
||||||
short_description: get details reported by lldp
|
short_description: get details reported by lldp
|
||||||
description:
|
description:
|
||||||
- Reads data out of lldpctl
|
- Reads data out of lldpctl
|
||||||
|
@ -76,8 +77,7 @@ def main():
|
||||||
except TypeError:
|
except TypeError:
|
||||||
module.fail_json(msg="lldpctl command failed. is lldpd running?")
|
module.fail_json(msg="lldpctl command failed. is lldpd running?")
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module_common.py
|
# import module snippets
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue