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

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZddlm
Z
mZmZmZd
�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	communitytsupported_bys�
---
module: mso_schema_template_externalepg
short_description: Manage external EPGs in schema templates
description:
- Manage external EPGs in schema templates on Cisco ACI Multi-Site.
author:
- Dag Wieers (@dagwieers)
version_added: '2.8'
options:
  schema:
    description:
    - The name of the schema.
    type: str
    required: yes
  template:
    description:
    - The name of the template.
    type: str
    required: yes
  externalepg:
    description:
    - The name of the external EPG to manage.
    type: str
    aliases: [ name ]
  display_name:
    description:
    - The name as displayed on the MSO web interface.
    type: str
  vrf:
    description:
    - The VRF associated to this ANP.
    type: dict
  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
extends_documentation_fragment: mso
s(
- name: Add a new external EPG
  mso_schema_template_externalepg:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema 1
    template: Template 1
    externalepg: External EPG 1
    state: present
  delegate_to: localhost

- name: Remove an external EPG
  mso_schema_template_externalepg:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema 1
    template: Template 1
    externalepg: external EPG1
    state: absent
  delegate_to: localhost

- name: Query a specific external EPGs
  mso_schema_template_externalepg:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema 1
    template: Template 1
    externalepg: external EPG1
    state: query
  delegate_to: localhost
  register: query_result

- name: Query all external EPGs
  mso_schema_template_externalepg:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema 1
    template: Template 1
    state: query
  delegate_to: localhost
  register: query_result
t
(t
AnsibleModule(t	MSOModuletmso_argument_spectmso_reference_spectissubsetcC`sNt�}|jdtdddt�dtdddt�dtddddg�d	tdd�d
tdddt��d
tddddddddg��td|dtdd
ddggd
ddd
ggg�}|jd}|jd}|jd}|jd	}|jd
}|jd
}t|�}|jdd|�}	|	r^|	d}
n|j	ddj
|��dj
|	�}g|	dD]}|d^q�}
||
kr�|j	ddj
|dj|
���n|
j|�}g|	d|dD]}|d^q�}|dk	rV||krV|j|�}|	d|d||_n|dkr�|dkr�|	d|d|_n(|js�|j	dd j
d|��n|j�nd!j
|�}d"j
||�}g}|j|_|dkr5|jri|_|_|jtd#d$d%|��qn�|dkr|j|d
|
|�}|dkrx|jrx|}ntd|d|d&|d'gd(g�}|j|d)t�|jr�|jtd#d*d%|d+|j��n)|jtd#d,d%|d-d+|j��|j|_n|js@|j|d.d/d0|�n|j�dS(1Ntschemattypetstrtrequiredttemplatetexternalepgtaliasestnametdisplay_nametvrftdicttoptionststatetdefaulttpresenttchoicestabsenttqueryt
argument_spectsupports_check_modetrequired_iftschemastdisplayNametidtmsgs$Provided schema '{0}' does not existsschemas/{id}t	templatess?Provided template '{0}' does not exist. Existing templates: {1}s, texternalEpgss&External EPG '{externalepg}' not founds/templates/{0}/externalEpgss/templates/{0}/externalEpgs/{1}toptremovetpathtvrfReftsubnetstcontractRelationshipstcollatetreplacetvaluetadds/-tmethodtPATCHtdata(RtupdateRtTrueRR	tparamsR
tget_objt	fail_jsontformattjointindextNonetexistingt	exit_jsontprevioustsenttappendtmake_referencetsanitizetproposedt
check_modetrequest(R tmoduleRRRRRRtmsot
schema_objt	schema_idtschema_pathttR'ttemplate_idxtetexternalepgstexternalepg_idxt
eepgs_patht	eepg_pathtopstvrf_reftpayload((s_/usr/lib/python2.7/site-packages/ansible/modules/network/aci/mso_schema_template_externalepg.pytmainos�		%






!()	
	"			()	t__main__N(t
__future__RRRRt
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtansible.module_utils.basicR	t$ansible.module_utils.network.aci.msoR
RRR
RXt__name__(((s_/usr/lib/python2.7/site-packages/ansible/modules/network/aci/mso_schema_template_externalepg.pyt<module>s


+/"	b

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