diff options
author | Bradley A. Thornton <bthornto@thethorntons.net> | 2019-08-09 10:48:27 -0700 |
---|---|---|
committer | Bradley A. Thornton <bthornto@thethorntons.net> | 2019-08-09 10:48:27 -0700 |
commit | 5fb9df4e907a6ab2da7a6c2dafdec9c1971e8d44 (patch) | |
tree | 4459ed61d06c8d8caabbcc3ab36d84e27a919ee7 /plugins/modules/vyos_l3_interfaces.py | |
parent | 7b9a33a29007ed302c3001566061e22c514cde64 (diff) | |
download | vyos-ansible-collection-5fb9df4e907a6ab2da7a6c2dafdec9c1971e8d44.tar.gz vyos-ansible-collection-5fb9df4e907a6ab2da7a6c2dafdec9c1971e8d44.zip |
bt_blackked
Diffstat (limited to 'plugins/modules/vyos_l3_interfaces.py')
-rw-r--r-- | plugins/modules/vyos_l3_interfaces.py | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/plugins/modules/vyos_l3_interfaces.py b/plugins/modules/vyos_l3_interfaces.py index 126c6c8..1a2e453 100644 --- a/plugins/modules/vyos_l3_interfaces.py +++ b/plugins/modules/vyos_l3_interfaces.py @@ -21,17 +21,19 @@ # builder template. # ############################################# + """ The module file for vyos_l3_interfaces """ -from __future__ import (absolute_import, division, print_function) +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 = """ @@ -348,12 +350,15 @@ commands: sample: ['set interfaces ethernet eth1 192.0.2.14/2', 'set interfaces ethernet eth3 vif 101 address 198.51.100.130/25'] """ + from ansible.module_utils.basic import AnsibleModule -from ansible_collections.vyos.vyos.plugins.module_utils.network. \ - vyos.argspec.l3_interfaces.l3_interfaces import L3_interfacesArgs +from ansible_collections.vyos.vyos.plugins.module_utils.network.vyos.argspec.l3_interfaces.l3_interfaces import ( + L3_interfacesArgs, +) -from ansible_collections.vyos.vyos.plugins.module_utils.network. \ - vyos.config.l3_interfaces.l3_interfaces import L3_interfaces +from ansible_collections.vyos.vyos.plugins.module_utils.network.vyos.config.l3_interfaces.l3_interfaces import ( + L3_interfaces, +) def main(): @@ -362,12 +367,13 @@ def main(): :returns: the result form module invocation """ - module = AnsibleModule(argument_spec=L3_interfacesArgs.argument_spec, - supports_check_mode=True) + module = AnsibleModule( + argument_spec=L3_interfacesArgs.argument_spec, supports_check_mode=True + ) result = L3_interfaces(module).execute_module() module.exit_json(**result) -if __name__ == '__main__': +if __name__ == "__main__": main() |