diff options
Diffstat (limited to 'ansible_collections/vmware/vmware_rest/plugins/modules/appliance_networking_interfaces_ipv6_info.py')
-rw-r--r-- | ansible_collections/vmware/vmware_rest/plugins/modules/appliance_networking_interfaces_ipv6_info.py | 33 |
1 files changed, 14 insertions, 19 deletions
diff --git a/ansible_collections/vmware/vmware_rest/plugins/modules/appliance_networking_interfaces_ipv6_info.py b/ansible_collections/vmware/vmware_rest/plugins/modules/appliance_networking_interfaces_ipv6_info.py index 1554a6337..858d3541b 100644 --- a/ansible_collections/vmware/vmware_rest/plugins/modules/appliance_networking_interfaces_ipv6_info.py +++ b/ansible_collections/vmware/vmware_rest/plugins/modules/appliance_networking_interfaces_ipv6_info.py @@ -3,11 +3,8 @@ # Copyright: (c) 2021, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # template: header.j2 -# This module is autogenerated by vmware_rest_code_generator. -# See: https://github.com/ansible-collections/vmware_rest_code_generator -from __future__ import absolute_import, division, print_function - -__metaclass__ = type +# This module is autogenerated using the ansible.content_builder. +# See: https://github.com/ansible-community/ansible.content_builder DOCUMENTATION = r""" @@ -17,7 +14,9 @@ description: Get IPv6 network configuration for specific interface. options: interface_name: description: - - Network interface to query, for example, "nic0". Required with I(state=['get']) + - Network interface to query, for example, "nic0". + - The parameter must be the id of a resource returned by M(vmware.vmware_rest.appliance_networking_interfaces_info). + Required with I(state=['get']) type: str session_timeout: description: @@ -68,11 +67,11 @@ author: - Ansible Cloud Team (@ansible-collections) version_added: 2.0.0 requirements: -- vSphere 7.0.2 or greater +- vSphere 7.0.3 or greater - python >= 3.6 - aiohttp notes: -- Tested on vSphere 7.0.2 +- Tested on vSphere 7.0.3 """ EXAMPLES = r""" @@ -105,8 +104,6 @@ PAYLOAD_FORMAT = { "get": {"query": {}, "body": {}, "path": {"interface_name": "interface_name"}} } # pylint: disable=line-too-long -import json -import socket from ansible.module_utils.basic import env_fallback try: @@ -121,26 +118,24 @@ try: except ImportError: from ansible.module_utils.basic import AnsibleModule from ansible_collections.vmware.vmware_rest.plugins.module_utils.vmware_rest import ( - build_full_device_list, - exists, gen_args, - get_device_info, - get_subdevice_type, - list_devices, open_session, - prepare_payload, - update_changed_flag, session_timeout, + update_changed_flag, ) def prepare_argument_spec(): argument_spec = { "vcenter_hostname": dict( - type="str", required=True, fallback=(env_fallback, ["VMWARE_HOST"]), + type="str", + required=True, + fallback=(env_fallback, ["VMWARE_HOST"]), ), "vcenter_username": dict( - type="str", required=True, fallback=(env_fallback, ["VMWARE_USER"]), + type="str", + required=True, + fallback=(env_fallback, ["VMWARE_USER"]), ), "vcenter_password": dict( type="str", |