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_encap_pool.pyo

�
�Udac@`sddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZddlm
Z
mZed
ddddddddddddd�Zededddd�d edd!dd"�d#edd$dd%��Zd&�Zed'kre�nd(S()i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	certifiedtsupported_bys�
---
module: aci_domain_to_encap_pool
short_description: Bind Domain to Encap Pools (infra:RsVlanNs)
description:
- Bind Domain to Encap Pools on Cisco ACI fabrics.
notes:
- The C(domain) and C(encap_pool) parameters should exist before using this module.
  The M(aci_domain) and M(aci_encap_pool) can be used for these.
version_added: '2.5'
options:
  domain:
    description:
    - Name of the domain being associated with the Encap 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 ]
  pool_allocation_mode:
    description:
    - The method used for allocating encaps to resources.
    - Only vlan and vsan support allocation modes.
    type: str
    choices: [ dynamic, static]
    aliases: [ allocation_mode, mode ]
  pool_type:
    description:
    - The encap type of C(pool).
    type: str
    required: yes
    choices: [ vlan, vsan, vxlan ]
  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
seealso:
- module: aci_domain
- module: aci_encap_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: Add domain to VLAN pool binding
  aci_domain_to_encap_pool:
    host: apic
    username: admin
    password: SomeSecretPassword
    domain: phys_dom
    domain_type: phys
    pool: test_pool
    pool_type: vlan
    pool_allocation_mode: dynamic
    state: present
  delegate_to: localhost

- name: Remove domain to VLAN pool binding
  aci_domain_to_encap_pool:
    host: apic
    username: admin
    password: SomeSecretPassword
    domain: phys_dom
    domain_type: phys
    pool: test_pool
    pool_type: vlan
    pool_allocation_mode: dynamic
    state: absent
  delegate_to: localhost

- name: Query our domain to VLAN pool binding
  aci_domain_to_encap_pool:
    host: apic
    username: admin
    password: SomeSecretPassword
    domain: phys_dom
    pool: test_pool
    pool_type: vlan
    pool_allocation_mode: dynamic
    state: query
  delegate_to: localhost
  register: query_result

- name: Query all domain to VLAN pool bindings
  aci_domain_to_encap_pool:
    host: apic
    username: admin
    password: SomeSecretPassword
    domain_type: phys
    pool_type: vlan
    pool_allocation_mode: dynamic
    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	OpenStacktredhattRedhattvmwaretVMwaretvlantaci_mosuni/infra/vlanns-{0}tchild_classt
infraRsVlanNstvxlansuni/infra/vxlanns-{0}tvmmRsVxlanNstvsansuni/infra/vsanns-{0}t
fcRsVsanNscC`s�t�}|jdtdddtddddd	d
g�dtdddtddd
dg�dtdddddg�dtddddg�dtdddddgdddg�dtddddddddg�dtdddd d!d"d#d$d%d&g��td'|d(td)dd
dggddddddggddddddggg�}|jd}|jd}|jd}|jd}|jd}|jd}|jd}|d
kr�|dk	r�|jd*d+j|��n|}	|dkrD|dk	rD|dk	r1d,j||�}	qD|jd*d-�n|dkro|dk	ro|jd*d.�n|dkr�d/}
d0j|�}d1j|�}n�|d2kr�d3}
d4j|�}d5j|�}n�|d6krd7}
d8j|�}d9j|�}nt|d	kr;d:}
d;j|�}d<j|�}nA|d
kr|d=}
d>jt	||�}d?jt	||�}n|dkr�d}nt
|d@j|	�}
t
|dA}t|�}|jdBtdC|
dD|dE|dFi|dG6�dH|g�|j
�|dkrm|jdC|
dItdG|�dJiii|
dK6dL6|6g�|jdC|
�|j�n|dkr�|j�n|j�dS(MNtdomain_typettypetstrtrequiredtchoicestfctl2domtl3domtphystvmmt	pool_typeRRRtdomaintaliasestdomain_nametdomain_profiletpoolt	pool_nametpool_allocation_modetallocation_modetmodetdynamictstatictstatetdefaulttpresenttabsenttquerytvm_providerRR
RRRRRt
argument_spectsupports_check_modetrequired_iftmsgs-Domain type '{0}' cannot have a 'vm_provider's	[{0}]-{1}sdACI requires the 'pool_allocation_mode' for 'pool_type' of 'vlan' and 'vsan' when 'pool' is providedsbvxlan pools do not support setting the allocation_mode; please remove this parameter from the tasktfcDomPs
uni/fc-{0}sfc-{0}tl2extt	l2extDomPs
uni/l2dom-{0}s	l2dom-{0}tl3extt	l3extDomPs
uni/l3dom-{0}s	l3dom-{0}tphysDomPsuni/phys-{0}sphys-{0}tvmmDomPsuni/vmmp-{0}/dom-{1}svmmp-{0}/dom-{1}RRt
root_classt	aci_classtaci_rnt
module_objectt
target_filtertnamet
child_classestclass_configt
child_configsttDnt
attributes(R
tupdatetdicttTrueRtparamstNonet	fail_jsontformattVM_PROVIDER_MAPPINGtPOOL_MAPPINGR	t
construct_urltget_existingtpayloadtget_difftpost_configt
delete_configt	exit_json(R=tmoduleR,R!R0R2R+R<R7R1tdomain_classt	domain_mot	domain_rntpool_moRtaci((sX/usr/lib/python2.7/site-packages/ansible/modules/network/aci/aci_domain_to_encap_pool.pytmain	s�		*$'$+!






		

	

t__main__N(t
__future__RRRR"t
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtansible.module_utils.basicRt$ansible.module_utils.network.aci.aciR	R
RTRZR[Rit__name__(((sX/usr/lib/python2.7/site-packages/ansible/modules/network/aci/aci_domain_to_encap_pool.pyt<module>s<


@5i				n

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