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

�
�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_epg_to_domain
short_description: Bind EPGs to Domains (fv:RsDomAtt)
description:
- Bind EPGs to Physical and Virtual Domains on Cisco ACI fabrics.
version_added: '2.4'
options:
  allow_useg:
    description:
    - Allows micro-segmentation.
    - The APIC defaults to C(encap) when unset during creation.
    type: str
    choices: [ encap, useg ]
  ap:
    description:
    - Name of an existing application network profile, that will contain the EPGs.
    type: str
    aliases: [ app_profile, app_profile_name ]
  deploy_immediacy:
    description:
    - Determines when the policy is pushed to hardware Policy CAM.
    - The APIC defaults to C(lazy) when unset during creation.
    type: str
    choices: [ immediate, lazy ]
  domain:
    description:
    - Name of the physical or virtual domain being associated with the EPG.
    type: str
    aliases: [ domain_name, domain_profile ]
  domain_type:
    description:
    - Specify whether the Domain is a physical (phys), a virtual (vmm) or an L2 external domain association (l2dom).
    type: str
    choices: [ l2dom, phys, vmm ]
    aliases: [ type ]
  encap:
    description:
    - The VLAN encapsulation for the EPG when binding a VMM Domain with static C(encap_mode).
    - This acts as the secondary encap when using useg.
    - Accepted values range between C(1) and C(4096).
    type: int
  encap_mode:
    description:
    - The encapsulation method to be used.
    - The APIC defaults to C(auto) when unset during creation.
    - If vxlan is selected, switching_mode must be "AVE".
    type: str
    choices: [ auto, vlan, vxlan ]
  switching_mode:
    description:
    - Switching Mode used by the switch
    type: str
    choices: [ AVE, native ]
    default: native
    version_added: '2.9'
  epg:
    description:
    - Name of the end point group.
    type: str
    aliases: [ epg_name, name ]
  netflow:
    description:
    - Determines if netflow should be enabled.
    - The APIC defaults to C(no) when unset during creation.
    type: bool
  primary_encap:
    description:
    - Determines the primary VLAN ID when using useg.
    - Accepted values range between C(1) and C(4096).
    type: int
  resolution_immediacy:
    description:
    - Determines when the policies should be resolved and available.
    - The APIC defaults to C(lazy) when unset during creation.
    type: str
    choices: [ immediate, lazy, pre-provision ]
  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
  tenant:
    description:
    - Name of an existing tenant.
    type: str
    aliases: [ tenant_name ]
  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(tenant), C(ap), C(epg), and C(domain) used must exist before using this module in your playbook.
  The M(aci_tenant) M(aci_ap), M(aci_epg) M(aci_domain) modules can be used for this.
- OpenStack VMM domains must not be created using this module. The OpenStack VMM domain is created directly
  by the Cisco APIC Neutron plugin as part of the installation and configuration.
  This module can be used to query status of an OpenStack VMM domain.
seealso:
- module: aci_ap
- module: aci_epg
- module: aci_domain
- name: APIC Management Information Model reference
  description: More information about the internal APIC class B(fv:RsDomAtt).
  link: https://developer.cisco.com/docs/apic-mim-ref/
author:
- Jacob McGill (@jmcgill298)
s.
- name: Add a new physical domain to EPG binding
  aci_epg_to_domain:
    host: apic
    username: admin
    password: SomeSecretPassword
    tenant: anstest
    ap: anstest
    epg: anstest
    domain: anstest
    domain_type: phys
    state: present
  delegate_to: localhost

- name: Remove an existing physical domain to EPG binding
  aci_epg_to_domain:
    host: apic
    username: admin
    password: SomeSecretPassword
    tenant: anstest
    ap: anstest
    epg: anstest
    domain: anstest
    domain_type: phys
    state: absent
  delegate_to: localhost

- name: Query a specific physical domain to EPG binding
  aci_epg_to_domain:
    host: apic
    username: admin
    password: SomeSecretPassword
    tenant: anstest
    ap: anstest
    epg: anstest
    domain: anstest
    domain_type: phys
    state: query
  delegate_to: localhost
  register: query_result

- name: Query all domain to EPG bindings
  aci_epg_to_domain:
    host: apic
    username: admin
    password: SomeSecretPassword
    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	OpenStacktredhattRedhattvmwaretVMwarec)C`s�t�}|jdtdddddg�dtdddd	d
g�dtddddd
g�dtdddddg�dtddddddgddg�dtdd�dtddddddg�dtdddddddg�dtddddd g�d!tdd"�d#tdd�d$tddddd
d%g�d&tdddd'dd(d'd)g�d*tdddd+g�d,tdddd-d.d/d0d1d2d3g��td4|d5td6ddd,ggd&d(ddddd*ggd&d'ddddd*ggg�}t|�}|jd}|jd}|jd}|jd}|jd}|jd,}|jd}	|	dk	r�|	td7d8�kr�d9j	|	�}	q�|j
d:d;�n|jd}
|jd}|jd}|j|jd!d<d=�}
|jd#}|dk	rT|td7d8�krAd9j	|�}qT|j
d:d;�n|jd$}|jd&}|jd*}|d[kr�|dk	r�|j
d:d>|�n|dkr�d?j	t||�}nB|dkr�d@j	|�}n$|dkrdAj	|�}nd}|j
dBtdCdDdEdFj	|�dG|dHi|d6�dItdCdJdEdKj	|�dG|dHi|d6�dLtdCdMdEdNj	|�dG|dHi|d6�dOtdCdPdEdQj	|�dG|dHi|dR6��|j�|d'kr[|jdCdPdStdT|d|	dU|
dV|dW|dX|
dY|dZ|��|jdCdP�|j�n|d(krt|j�n|j�dS(\Nt
allow_usegttypetstrtchoicestencaptusegtaptaliasestapp_profiletapp_profile_nametdeploy_immediacyt	immediatetlazytdomaintdomain_nametdomain_profiletdomain_typetl2domtphystvmmtintt
encap_modetautotvlantvxlantswitching_modetdefaulttnativetAVEtepgtnametepg_nametnetflowtboolt
primary_encaptresolution_immediacys
pre-provisiontstatetpresenttabsenttqueryttenantttenant_nametvm_providerRR
RRRRRt
argument_spectsupports_check_modetrequired_ifiisvlan-{0}tmsgs)Valid VLAN assignments are from 1 to 4096tenabledtdisableds,Domain type '%s' cannot have a 'vm_provider'suni/vmmp-{0}/dom-{1}s
uni/l2dom-{0}suni/phys-{0}t
root_classt	aci_classtfvTenanttaci_rnstn-{0}t
module_objectt
target_filtert
subclass_1tfvApsap-{0}t
subclass_2tfvAEPgsepg-{0}t
subclass_3t
fvRsDomAttsrsdomAtt-[{0}]ttDntclass_configt	classPreft	encapModet
switchingModetinstrImedcytnetflowPreftprimaryEncapt	resImedcy(R*R+(R
tupdatetdictRtTrueR	tparamstNonetrangetformatt	fail_jsontbooleantVM_PROVIDER_MAPPINGt
construct_urltget_existingtpayloadtget_difftpost_configt
delete_configt	exit_json(RDtmoduletaciRRR#R&R)RCRR.R2R6R9R;R<R=RAt
epg_domain((sQ/usr/lib/python2.7/site-packages/ansible/modules/network/aci/aci_epg_to_domain.pytmain)s�		'!$+$













	
	

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


r3i		}

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