summaryrefslogtreecommitdiff
path: root/plugins/modules/vyos_interfaces.py
diff options
context:
space:
mode:
authorBradley A. Thornton <bthornto@thethorntons.net>2019-08-09 10:48:27 -0700
committerBradley A. Thornton <bthornto@thethorntons.net>2019-08-09 10:48:27 -0700
commit5fb9df4e907a6ab2da7a6c2dafdec9c1971e8d44 (patch)
tree4459ed61d06c8d8caabbcc3ab36d84e27a919ee7 /plugins/modules/vyos_interfaces.py
parent7b9a33a29007ed302c3001566061e22c514cde64 (diff)
downloadvyos-ansible-collection-5fb9df4e907a6ab2da7a6c2dafdec9c1971e8d44.tar.gz
vyos-ansible-collection-5fb9df4e907a6ab2da7a6c2dafdec9c1971e8d44.zip
bt_blackked
Diffstat (limited to 'plugins/modules/vyos_interfaces.py')
-rw-r--r--plugins/modules/vyos_interfaces.py26
1 files changed, 16 insertions, 10 deletions
diff --git a/plugins/modules/vyos_interfaces.py b/plugins/modules/vyos_interfaces.py
index feef493..ca61f4d 100644
--- a/plugins/modules/vyos_interfaces.py
+++ b/plugins/modules/vyos_interfaces.py
@@ -21,17 +21,19 @@
# builder template.
#
#############################################
+
"""
The module file for vyos_interfaces
"""
from __future__ import absolute_import, division, print_function
+
__metaclass__ = type
ANSIBLE_METADATA = {
- 'metadata_version': '1.1',
- 'status': ['preview'],
- 'supported_by': 'network'
+ "metadata_version": "1.1",
+ "status": ["preview"],
+ "supported_by": "network",
}
DOCUMENTATION = """
@@ -852,12 +854,15 @@ commands:
- 'set interfaces ethernet eth2 vif 100 description VIF 100'
"""
+
from ansible.module_utils.basic import AnsibleModule
-from ansible_collections.vyos.vyos.plugins.module_utils.network. \
- vyos.argspec.interfaces.interfaces import InterfacesArgs
+from ansible_collections.vyos.vyos.plugins.module_utils.network.vyos.argspec.interfaces.interfaces import (
+ InterfacesArgs,
+)
-from ansible_collections.vyos.vyos.plugins.module_utils.network. \
- vyos.config.interfaces.interfaces import Interfaces
+from ansible_collections.vyos.vyos.plugins.module_utils.network.vyos.config.interfaces.interfaces import (
+ Interfaces,
+)
def main():
@@ -866,12 +871,13 @@ def main():
:returns: the result form module invocation
"""
- module = AnsibleModule(argument_spec=InterfacesArgs.argument_spec,
- supports_check_mode=True)
+ module = AnsibleModule(
+ argument_spec=InterfacesArgs.argument_spec, supports_check_mode=True
+ )
result = Interfaces(module).execute_module()
module.exit_json(**result)
-if __name__ == '__main__':
+if __name__ == "__main__":
main()