mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 14:20:22 -07:00
ACI EPG TO DOMAIN: Add vm_provider docstring and add support for micr… (#29114)
* ACI EPG TO DOMAIN: Add vm_provider docstring and add support for microsoft and openstack * Fix typo * Fix whitespace
This commit is contained in:
parent
212bb76326
commit
2489eeece0
1 changed files with 6 additions and 2 deletions
|
@ -95,6 +95,10 @@ options:
|
||||||
description:
|
description:
|
||||||
- Name of an existing tenant.
|
- Name of an existing tenant.
|
||||||
aliases: [ tenant_name ]
|
aliases: [ tenant_name ]
|
||||||
|
vm_provider:
|
||||||
|
description:
|
||||||
|
- The VM platform for VMM Domains.
|
||||||
|
choices: [ microsoft, openstack, vmware ]
|
||||||
extends_documentation_fragment: aci
|
extends_documentation_fragment: aci
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
@ -105,7 +109,7 @@ RETURN = r''' # '''
|
||||||
from ansible.module_utils.aci import ACIModule, aci_argument_spec
|
from ansible.module_utils.aci import ACIModule, aci_argument_spec
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
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():
|
def main():
|
||||||
|
@ -124,7 +128,7 @@ def main():
|
||||||
resolution_immediacy=dict(type='str', choices=['immediate', 'lazy', 'pre-provision']),
|
resolution_immediacy=dict(type='str', choices=['immediate', 'lazy', 'pre-provision']),
|
||||||
state=dict(type='str', default='present', choices=['absent', 'present', 'query']),
|
state=dict(type='str', default='present', choices=['absent', 'present', 'query']),
|
||||||
tenant=dict(type='str', aliases=['tenant_name']),
|
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
|
method=dict(type='str', choices=['delete', 'get', 'post'], aliases=['action'], removed_in_version='2.6'), # Deprecated starting from v2.6
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue