From 2489eeece00afbac2c2c0be514d8f9a0a250ef53 Mon Sep 17 00:00:00 2001 From: Jacob McGill Date: Tue, 12 Sep 2017 17:53:17 -0400 Subject: [PATCH] =?UTF-8?q?ACI=20EPG=20TO=20DOMAIN:=20Add=20vm=5Fprovider?= =?UTF-8?q?=20docstring=20and=20add=20support=20for=20micr=E2=80=A6=20(#29?= =?UTF-8?q?114)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ACI EPG TO DOMAIN: Add vm_provider docstring and add support for microsoft and openstack * Fix typo * Fix whitespace --- lib/ansible/modules/network/aci/aci_epg_to_domain.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/network/aci/aci_epg_to_domain.py b/lib/ansible/modules/network/aci/aci_epg_to_domain.py index 2a318c9398..e7ad960c2a 100644 --- a/lib/ansible/modules/network/aci/aci_epg_to_domain.py +++ b/lib/ansible/modules/network/aci/aci_epg_to_domain.py @@ -95,6 +95,10 @@ options: description: - Name of an existing tenant. aliases: [ tenant_name ] + vm_provider: + description: + - The VM platform for VMM Domains. + choices: [ microsoft, openstack, vmware ] extends_documentation_fragment: aci ''' @@ -105,7 +109,7 @@ RETURN = r''' # ''' from ansible.module_utils.aci import ACIModule, aci_argument_spec from ansible.module_utils.basic import AnsibleModule -VM_PROVIDER_MAPPING = dict(vmware="uni/vmmp-VMware/dom-") +VM_PROVIDER_MAPPING = dict(microsoft="uni/vmmp-Microsoft/dom-", openstack="uni/vmmp-OpenStack/dom-", vmware="uni/vmmp-VMware/dom-") def main(): @@ -124,7 +128,7 @@ def main(): resolution_immediacy=dict(type='str', choices=['immediate', 'lazy', 'pre-provision']), state=dict(type='str', default='present', choices=['absent', 'present', 'query']), tenant=dict(type='str', aliases=['tenant_name']), - vm_provider=dict(type='str', choices=['vmware']), # TODO: Find out OVS and Hyper-V options + vm_provider=dict(type='str', choices=['microsoft', 'openstack', 'vmware']), method=dict(type='str', choices=['delete', 'get', 'post'], aliases=['action'], removed_in_version='2.6'), # Deprecated starting from v2.6 )