Skip to content

Commit

Permalink
ACI EPG TO DOMAIN: Add vm_provider docstring and add support for micr… (
Browse files Browse the repository at this point in the history
ansible#29114)

* ACI EPG TO DOMAIN: Add vm_provider docstring and add support for microsoft and openstack

* Fix typo

* Fix whitespace
  • Loading branch information
jmcgill298 authored and Prasad Katti committed Oct 1, 2017
1 parent e17df02 commit cf3a9d2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/ansible/modules/network/aci/aci_epg_to_domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@
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
'''

Expand All @@ -105,7 +109,7 @@
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():
Expand All @@ -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
)

Expand Down

0 comments on commit cf3a9d2

Please sign in to comment.