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_vrf_region.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_vrf_region
short_description: Manage site-local VRF regions in schema template
description:
- Manage site-local VRF regions in schema template 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.
    type: str
    required: yes
  template:
    description:
    - The name of the template.
    type: str
    required: yes
  vrf:
    description:
    - The name of the VRF.
    type: str
  region:
    description:
    - The name of the region to manage.
    type: str
    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_site_vrf
- module: mso_schema_template_vrf
extends_documentation_fragment: mso
s�
- name: Add a new site VRF region
  mso_schema_template_vrf_region:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema1
    site: Site1
    template: Template1
    vrf: VRF1
    region: us-west-1
    state: present
  delegate_to: localhost

- name: Remove a site VRF region
  mso_schema_template_vrf_region:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema1
    site: Site1
    template: Template1
    vrf: VRF1
    region: us-west-1
    state: absent
  delegate_to: localhost

- name: Query a specific site VRF region
  mso_schema_template_vrf_region:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema1
    site: Site1
    template: Template1
    vrf: VRF1
    region: us-west-1
    state: query
  delegate_to: localhost
  register: query_result

- name: Query all site VRF regions
  mso_schema_template_vrf_region:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema1
    site: Site1
    template: Template1
    vrf: VRF1
    state: query
  delegate_to: localhost
  register: query_result
t
(t
AnsibleModule(t	MSOModuletmso_argument_speccC`s�t�}|jdtdddt�dtdddt�dtdddt�dtdddt�dtddd	d
g�dtdddd
ddd
dg��td|dtddddggdd
dggg�}|jd}|jd}|jd}|jd}|jd}|jd}t|�}|jdd|�}	|	sm|jddj	|��ndj	|	�}
|	d}|j
|�}g|	dD]}
|
d|
df^q�}||f|kr�|jddj	||dj|���n|j||f�}dj	||�}|j
d |d|d|�}g|	d|d!D]}|d"^qU}||kr�|jdd#j	|dj|���n|j|�}g|	d|d!|d$D]}|d
^q�}|dk	r?||kr?|j|�}d%j	|||�}|	d|d!|d$||_n|dkr�|dkrw|	d|d!|d$|_n(|js�|jdd&j	d|��n|j�nd'j	||�}g}|j|_|dkr|jr�i|_|_|jtd(d)d*|��q�n�|d
kr�td
|�}|j|d+t�|jrv|jtd(d,d*|d-|j��n)|jtd(d.d*|d/d-|j��|j|_n|js�|j|
d0d1d2|�n|j�dS(3Ntschemattypetstrtrequiredtsitettemplatetvrftregiontaliasestnametstatetdefaulttpresenttchoicestabsenttqueryt
argument_spectsupports_check_modetrequired_iftschemastdisplayNametmsgs$Provided schema '{0}' does not existsschemas/{id}tidtsitestsiteIdttemplateNamesNProvided site/template '{0}-{1}' does not exist. Existing sites/templates: {2}s, s{0}-{1}t	schema_idtvrfstvrfRefs5Provided vrf '{0}' does not exist. Existing vrfs: {1}tregionss/sites/{0}/vrfs/{1}/regions/{2}sRegion '{region}' not founds/sites/{0}/vrfs/{1}/regionstoptremovetpathtcollatetreplacetvaluetadds/-tmethodtPATCHtdata(RtupdatetdicttTrueR	tparamsR
tget_objt	fail_jsontformattlookup_sitetjointindextvrf_reftNonetexistingt	exit_jsontprevioustsenttappendtsanitizetproposedt
check_modetrequest(RtmoduleRRRRRRtmsot
schema_objtschema_pathR&tsite_idtsR#tsite_idxt
site_templateR>tvR'tvrf_idxtrR)t
region_idxtregion_pathtregions_pathtopstpayload((sZ/usr/lib/python2.7/site-packages/ansible/modules/network/aci/mso_schema_site_vrf_region.pytmain{s�		%





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


/7	e

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