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

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZddlm
Z
mZd
�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	communitytsupported_bys#
---
module: mso_schema_site
short_description: Manage sites in schemas
description:
- Manage sites 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
  site:
    description:
    - The name of the site to manage.
    type: str
    required: yes
  template:
    description:
    - The name of the template.
    type: str
    required: yes
    aliases: [ name ]
  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
seealso:
- module: mso_schema_template
- module: mso_site
extends_documentation_fragment: mso
s�
- name: Add a new site to a schema
  mso_schema_site:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema 1
    site: bdsol-pod51
    template: Template 1
    state: present
  delegate_to: localhost

- name: Remove a site from a schema
  mso_schema_site:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema 1
    site: bdsol-pod51
    template: Template 1
    state: absent
  delegate_to: localhost

- name: Query a schema site
  mso_schema_site:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema 1
    site: bdsol-pod51
    template: Template 1
    state: query
  delegate_to: localhost
  register: query_result

- name: Query all schema sites
  mso_schema_site:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema 1
    site: bdsol-pod51
    state: query
  delegate_to: localhost
  register: query_result
t
(t
AnsibleModule(t	MSOModuletmso_argument_speccC`snt�}|jdtdddt�dtddddg�dtdd�d	tddd
ddd
ddg��td|dtdd	d
ddggd	dddggg�}|jd}|jd}|jd}|jd	}t|�}|jdd|�}|s)|jddj	|��ndj	|�}|j
|�}	i|_d|kr�g|dD]}
|
d|
df^qg}|r�|	|f|kr�|j|	|f�}|d||_q�q�|d|_n|dkr+|js|r|jddj	|��qg|_n|j
�nd}
dj	|�}g}|j|_|d
kr�|jr;i|_|_|jtddd|��q;n�|dkr;|js;td|	d|d gd!gd"gd#gd$gd%gd&g�	}|j|d't�|jtdd(d|
d)d*|j��|j|_q;n|js`|j|d+d,d-|�n|j
�dS(.Ntschemattypetstrtrequiredtsitetaliasestnamettemplatetstatetdefaulttpresenttchoicestabsenttqueryt
argument_spectsupports_check_modetrequired_iftschemastdisplayNametmsgs$Provided schema '{0}' does not existsschemas/{id}tsitestsiteIdttemplateNamesTemplate '{0}' not founds/sitess
/sites/{0}toptremovetpathtanpstbdst	contractstexternalEpgstintersiteL3outst
serviceGraphstvrfstcollatetadds/-tvaluetmethodtPATCHtdata(RtupdatetdicttTrueR	tparamsR
tget_objt	fail_jsontformattlookup_sitetexistingtindext	exit_jsontprevioustsenttappendtsanitizetproposedt
check_modetrequest(RtmoduleRRRRtmsot
schema_objtschema_pathtsite_idtsR tsite_idxt
sites_patht	site_pathtopstpayload((sO/usr/lib/python2.7/site-packages/ansible/modules/network/aci/mso_schema_site.pytmainksz		%



	+	
	"		)	t__main__N(t
__future__RRRR
t
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtansible.module_utils.basicR	t$ansible.module_utils.network.aci.msoR
RRPt__name__(((sO/usr/lib/python2.7/site-packages/ansible/modules/network/aci/mso_schema_site.pyt<module>s


'/	\

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