Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/modules/network/aci/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/modules/network/aci/aci_domain_to_vlan_pool.pyo

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZddlm
Z
mZed
ddddddddddddd�Zd�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	certifiedtsupported_bys
---
module: aci_domain_to_vlan_pool
short_description: Bind Domain to VLAN Pools (infra:RsVlanNs)
description:
- Bind Domain to VLAN Pools on Cisco ACI fabrics.
version_added: '2.5'
options:
  domain:
    description:
    - Name of the domain being associated with the VLAN Pool.
    type: str
    aliases: [ domain_name, domain_profile ]
  domain_type:
    description:
    - Determines if the Domain is physical (phys) or virtual (vmm).
    type: str
    choices: [ fc, l2dom, l3dom, phys, vmm ]
  pool:
    description:
    - The name of the pool.
    type: str
    aliases: [ pool_name, vlan_pool ]
  pool_allocation_mode:
    description:
    - The method used for allocating VLANs to resources.
    type: str
    required: yes
    choices: [ dynamic, static]
    aliases: [ allocation_mode, mode ]
  state:
    description:
    - Use C(present) or C(absent) for adding or removing.
    - Use C(query) for listing an object or multiple objects.
    type: str
    choices: [ absent, present, query ]
    default: present
  vm_provider:
    description:
    - The VM platform for VMM Domains.
    - Support for Kubernetes was added in ACI v3.0.
    - Support for CloudFoundry, OpenShift and Red Hat was added in ACI v3.1.
    type: str
    choices: [ cloudfoundry, kubernetes, microsoft, openshift, openstack, redhat, vmware ]
extends_documentation_fragment: aci
notes:
- The C(domain) and C(vlan_pool) parameters should exist before using this module.
  The M(aci_domain) and M(aci_vlan_pool) can be used for these.
seealso:
- module: aci_domain
- module: aci_vlan_pool
- name: APIC Management Information Model reference
  description: More information about the internal APIC class B(infra:RsVlanNs).
  link: https://developer.cisco.com/docs/apic-mim-ref/
author:
- Dag Wieers (@dagwieers)
s�
- name: Bind a VMM domain to VLAN pool
  aci_domain_to_vlan_pool:
    host: apic
    username: admin
    password: SomeSecretPassword
    domain: vmw_dom
    domain_type: vmm
    pool: vmw_pool
    pool_allocation_mode: dynamic
    vm_provider: vmware
    state: present
  delegate_to: localhost

- name: Remove a VMM domain to VLAN pool binding
  aci_domain_to_vlan_pool:
    host: apic
    username: admin
    password: SomeSecretPassword
    domain: vmw_dom
    domain_type: vmm
    pool: vmw_pool
    pool_allocation_mode: dynamic
    vm_provider: vmware
    state: absent
  delegate_to: localhost

- name: Bind a physical domain to VLAN pool
  aci_domain_to_vlan_pool:
    host: apic
    username: admin
    password: SomeSecretPassword
    domain: phys_dom
    domain_type: phys
    pool: phys_pool
    pool_allocation_mode: static
    state: present
  delegate_to: localhost

- name: Bind a physical domain to VLAN pool
  aci_domain_to_vlan_pool:
    host: apic
    username: admin
    password: SomeSecretPassword
    domain: phys_dom
    domain_type: phys
    pool: phys_pool
    pool_allocation_mode: static
    state: absent
  delegate_to: localhost

- name: Query an domain to VLAN pool binding
  aci_domain_to_vlan_pool:
    host: apic
    username: admin
    password: SomeSecretPassword
    domain: phys_dom
    domain_type: phys
    pool: phys_pool
    pool_allocation_mode: static
    state: query
  delegate_to: localhost
  register: query_result

- name: Query all domain to VLAN pool bindings
  aci_domain_to_vlan_pool:
    host: apic
    username: admin
    password: SomeSecretPassword
    domain_type: phys
    state: query
  delegate_to: localhost
  register: query_result
s�

current:
  description: The existing configuration from the APIC after the module has finished
  returned: success
  type: list
  sample:
    [
        {
            "fvTenant": {
                "attributes": {
                    "descr": "Production environment",
                    "dn": "uni/tn-production",
                    "name": "production",
                    "nameAlias": "",
                    "ownerKey": "",
                    "ownerTag": ""
                }
            }
        }
    ]
error:
  description: The error information as returned from the APIC
  returned: failure
  type: dict
  sample:
    {
        "code": "122",
        "text": "unknown managed object class foo"
    }
raw:
  description: The raw output returned by the APIC REST API (xml or json)
  returned: parse error
  type: str
  sample: '<?xml version="1.0" encoding="UTF-8"?><imdata totalCount="1"><error code="122" text="unknown managed object class foo"/></imdata>'
sent:
  description: The actual/minimal configuration pushed to the APIC
  returned: info
  type: list
  sample:
    {
        "fvTenant": {
            "attributes": {
                "descr": "Production environment"
            }
        }
    }
previous:
  description: The original configuration from the APIC before the module has started
  returned: info
  type: list
  sample:
    [
        {
            "fvTenant": {
                "attributes": {
                    "descr": "Production",
                    "dn": "uni/tn-production",
                    "name": "production",
                    "nameAlias": "",
                    "ownerKey": "",
                    "ownerTag": ""
                }
            }
        }
    ]
proposed:
  description: The assembled configuration from the user-provided parameters
  returned: info
  type: dict
  sample:
    {
        "fvTenant": {
            "attributes": {
                "descr": "Production environment",
                "name": "production"
            }
        }
    }
filter_string:
  description: The filter string used for the request
  returned: failure or debug
  type: str
  sample: ?rsp-prop-include=config-only
method:
  description: The HTTP method used for the request to the APIC
  returned: failure or debug
  type: str
  sample: POST
response:
  description: The HTTP response from the APIC
  returned: failure or debug
  type: str
  sample: OK (30 bytes)
status:
  description: The HTTP status from the APIC
  returned: failure or debug
  type: int
  sample: 200
url:
  description: The HTTP url used for the request to the APIC
  returned: failure or debug
  type: str
  sample: https://10.11.12.13/api/mo/uni/tn-production.json
(t
AnsibleModule(t	ACIModuletaci_argument_spectcloudfoundrytCloudFoundryt
kubernetest
Kubernetest	microsoftt	Microsoftt	openshiftt	OpenShiftt	openstackt	OpenStacktredhattRedhattvmwaretVMwarecC`s�t�}|jdtdddtddddd	d
g�dtdddd
dg�dtdddddg�dtdddtdddgdddg�dtddddddddg�dtddddddd d!d"d#g��td$|d%td&dd
dggdddddggdddddggg�}|jd}|jd}|jd}|jd}|jd}|jd}|d
kr�|dk	r�|jd'd(j|��n|}|dk	r�d)j||�}n|dkrd*}	d+j|�}
d,j|�}n�|dkrQd-}	d.j|�}
d/j|�}n�|dkr�d0}	d1j|�}
d2j|�}nt|d	kr�d3}	d4j|�}
d5j|�}nA|d
kr�d6}	d7jt	||�}
d8jt	||�}n|dkr
d}
nd9j|�}t
|�}
|
jd:td;|	d<|d=|
d>i|d?6�d@dAg�|
j�|dkr�|
j
d;|	dBtd?|�dCiii|dD6dE6dA6g�|
jd;|	�|
j�n|dkr�|
j�n|
j�dS(FNtdomain_typettypetstrtrequiredtchoicestfctl2domtl3domtphystvmmtdomaintaliasestdomain_nametdomain_profiletpoolt	pool_namet	vlan_pooltpool_allocation_modetallocation_modetmodetdynamictstatictstatetdefaulttpresenttabsenttquerytvm_providerRR
RRRRRt
argument_spectsupports_check_modetrequired_iftmsgs-Domain type '{0}' cannot have a 'vm_provider's	[{0}]-{1}tfcDomPs
uni/fc-{0}sfc-{0}t	l2extDomPs
uni/l2dom-{0}s	l2dom-{0}t	l3extDomPs
uni/l3dom-{0}s	l3dom-{0}tphysDomPsuni/phys-{0}sphys-{0}tvmmDomPsuni/vmmp-{0}/dom-{1}svmmp-{0}/dom-{1}suni/infra/vlanns-{0}t
root_classt	aci_classtaci_rnt
module_objectt
target_filtertnamet
child_classest
infraRsVlanNstclass_configt
child_configsttDnt
attributes(R
tupdatetdicttTrueRtparamstNonet	fail_jsontformattVM_PROVIDER_MAPPINGR	t
construct_urltget_existingtpayloadtget_difftpost_configt
delete_configt	exit_json(R5tmoduleR#RR'R*R4R/R(tdomain_classt	domain_mot	domain_rntaci_motaci((sW/usr/lib/python2.7/site-packages/ansible/modules/network/aci/aci_domain_to_vlan_pool.pytmain
s�		*-$+





		

	

t__main__N(t
__future__RRRRt
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtansible.module_utils.basicRt$ansible.module_utils.network.aci.aciR	R
RKRQR_t__name__(((sW/usr/lib/python2.7/site-packages/ansible/modules/network/aci/aci_domain_to_vlan_pool.pyt<module>s(


:Ki		a

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]