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.pyc

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZddlm
Z
mZed
ddddddddddddd�Zedddddddd�Zd �Zed!kr�e�nd"S(#i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	certifiedtsupported_bys�
---
module: aci_domain
short_description: Manage physical, virtual, bridged, routed or FC domain profiles (phys:DomP, vmm:DomP, l2ext:DomP, l3ext:DomP, fc:DomP)
description:
- Manage physical, virtual, bridged, routed or FC domain profiles on Cisco ACI fabrics.
version_added: '2.5'
options:
  domain:
    description:
    - Name of the physical, virtual, bridged routed or FC domain profile.
    type: str
    aliases: [ domain_name, domain_profile, name ]
  domain_type:
    description:
    - The type of domain profile.
    - 'C(fc): The FC domain profile is a policy pertaining to single FC Management domain'
    - 'C(l2dom): The external bridged domain profile is a policy for managing L2 bridged infrastructure bridged outside the fabric.'
    - 'C(l3dom): The external routed domain profile is a policy for managing L3 routed infrastructure outside the fabric.'
    - 'C(phys): The physical domain profile stores the physical resources and encap resources that should be used for EPGs associated with this domain.'
    - 'C(vmm): The VMM domain profile is a policy for grouping VM controllers with similar networking policy requirements.'
    type: str
    choices: [ fc, l2dom, l3dom, phys, vmm ]
    aliases: [ type ]
  dscp:
    description:
    - The target Differentiated Service (DSCP) value.
    - The APIC defaults to C(unspecified) when unset during creation.
    type: str
    choices: [ AF11, AF12, AF13, AF21, AF22, AF23, AF31, AF32, AF33, AF41, AF42, AF43, CS0, CS1, CS2, CS3, CS4, CS5, CS6, CS7, EF, VA, unspecified ]
    aliases: [ target ]
  encap_mode:
    description:
    - The layer 2 encapsulation protocol to use with the virtual switch.
    type: str
    choices: [ unknown, vlan, vxlan ]
  multicast_address:
    description:
    - The multicast IP address to use for the virtual switch.
    type: str
  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 ]
  vswitch:
    description:
    - The virtual switch to use for vmm domains.
    - The APIC defaults to C(default) when unset during creation.
    type: str
    choices: [ avs, default, dvs, unknown ]
extends_documentation_fragment: aci
seealso:
- module: aci_aep_to_domain
- module: aci_domain_to_encap_pool
- module: aci_domain_to_vlan_pool
- name: APIC Management Information Model reference
  description: More information about the internal APIC classes B(phys:DomP),
               B(vmm:DomP), B(l2ext:DomP), B(l3ext:DomP) and B(fc:DomP)
  link: https://developer.cisco.com/docs/apic-mim-ref/
author:
- Dag Wieers (@dagwieers)
s�
- name: Add a new physical domain
  aci_domain:
    host: apic
    username: admin
    password: SomeSecretPassword
    domain: phys_dom
    domain_type: phys
    state: present

- name: Remove a physical domain
  aci_domain:
    host: apic
    username: admin
    password: SomeSecretPassword
    domain: phys_dom
    domain_type: phys
    state: absent

- name: Add a new VMM domain
  aci_domain:
    host: apic
    username: admin
    password: SomeSecretPassword
    domain: hyperv_dom
    domain_type: vmm
    vm_provider: microsoft
    state: present
  delegate_to: localhost

- name: Remove a VMM domain
  aci_domain:
    host: apic
    username: admin
    password: SomeSecretPassword
    domain: hyperv_dom
    domain_type: vmm
    vm_provider: microsoft
    state: absent
  delegate_to: localhost

- name: Query a specific physical domain
  aci_domain:
    host: apic
    username: admin
    password: SomeSecretPassword
    domain: phys_dom
    domain_type: phys
    state: query
  delegate_to: localhost
  register: query_result

- name: Query all domains
  aci_domain:
    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	OpenStacktredhattRedhattvmwaretVMwaretavstn1kvtdefaulttdvstunknownc!C`s�t�}|jdtdddtddddd	d
gddg�dtdddd
ddg�dtddddddddddddddddddd d!d"d#d$d%d&d'gdd(g�d)tdddd*d+d,g�d-tdd�d.tddd/d0dd1d0d2g�d3tdddd4d5d6d7d8d9d:g�d;tdddd<d/d=d*g��td>|d?td@dd
d3ggd.d1ddggd.d0ddggg�}|jd}|jd}|jd}|jd)}|jd-}|jd3}|jd;}|dk	r%t|}n|jd.}	|d
kr�|dk	rf|jdAdBj	|��n|dk	r�|jdAdCj	|��n|dk	r�|jdAdDj	|��n|dk	r�|jdAdEj	|��q�n|dk	r|d`kr|jdAdF�n|dkr?dG}
dHj	|�}dIj	|�}n�|dkrrdJ}
dKj	|�}dLj	|�}n�|dkr�dM}
dNj	|�}dOj	|�}nt|d	kr�dP}
dQj	|�}dRj	|�}nA|d
krdS}
dTj	t
||�}dUj	t
||�}n|dkr.d}nt|�}
|
jdVtdW|
dX|dY|dZi|d6��|
j
�|	d0kr�|
jdW|
d[td\|d]|d^|d|d_|��|
jdW|
�|
j�n|	d1kr�|
j�n|
j�dS(aNtdomain_typettypetstrtrequiredtchoicestfctl2domtl3domtphystvmmtaliasestdomaintdomain_nametdomain_profiletnametdscptAF11tAF12tAF13tAF21tAF22tAF23tAF31tAF32tAF33tAF41tAF42tAF43tCS0tCS1tCS2tCS3tCS4tCS5tCS6tCS7tEFtVAtunspecifiedttargett
encap_modeRtvlantvxlantmulticast_addresststateRtpresenttabsenttquerytvm_providerRR
RRRRRtvswitchRRt
argument_spectsupports_check_modetrequired_iftmsgs5Domain type '{0}' cannot have parameter 'vm_provider's4Domain type '{0}' cannot have parameter 'encap_mode's;Domain type '{0}' cannot have parameter 'multicast_address's1Domain type '{0}' cannot have parameter 'vswitch's>DSCP values can only be assigned to 'l2ext and 'l3ext' domainstfcDomPs
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}t
root_classt	aci_classtaci_rnt
module_objectt
target_filtertclass_configt	encapModet	mcastAddrtmodet
targetDscp(R$R%(R
tupdatetdicttTrueRtparamstNonetVSWITCH_MAPPINGt	fail_jsontformattVM_PROVIDER_MAPPINGR	t
construct_urltget_existingtpayloadtget_difftpost_configt
delete_configt	exit_json(RPtmoduleR-R)RRFRIRNRORJtdomain_classt	domain_mot	domain_rntaci((sJ/usr/lib/python2.7/site-packages/ansible/modules/network/aci/aci_domain.pytmains�		3$'$*"








		
	


t__main__N(t
__future__RRRRt
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtansible.module_utils.basicRt$ansible.module_utils.network.aci.aciR	R
RdRkRhRxt__name__(((sJ/usr/lib/python2.7/site-packages/ansible/modules/network/aci/aci_domain.pyt<module>s2


I?i			n

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