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.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
short_description: Manage site-local VRFs in schema template
description:
- Manage site-local VRFs 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 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
- module: mso_schema_template_vrf
extends_documentation_fragment: mso
s�
- name: Add a new site VRF
  mso_schema_site_vrf:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema1
    site: Site1
    template: Template1
    vrf: VRF1
    state: present
  delegate_to: localhost

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

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

- name: Query all site VRFs
  mso_schema_site_vrf:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema1
    site: Site1
    template: Template1
    state: query
  delegate_to: localhost
  register: query_result
t
(t
AnsibleModule(t	MSOModuletmso_argument_speccC`sJt�}|jdtdddt�dtdddt�dtdddt�dtdddd	g�d
tddddd
dddg��td|dtdd
ddggd
ddggg�}|jd}|jd}|jd}|jd}|jd
}t|�}|jdd|�}|sK|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!^q3}|dk	r�||kr�|j|�}d"j	||�}|d|d ||_n|dkr|dkr�|d|d |_n(|js�|jdd#j	d|��n|j�nd$j	|�}g}|j|_|dkrk|jri|_|_|jtd%d&d'|��qn�|dkrtd!td(|
d|d)|��}|j|d*t�|jr�|jtd%d+d'|d,|j��n)|jtd%d-d'|d.d,|j��|j|_n|js<|j|	d/d0d1|�n|j�dS(2Ntschemattypetstrtrequiredtsitettemplatetvrftaliasestnametstatetdefaulttpresenttchoicestabsenttqueryt
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_idtvrfstvrfRefs/sites/{0}/vrfs/{1}sVRF '{vrf}' not founds/sites/{0}/vrfstoptremovetpathtschemaIdtvrfNametcollatetreplacetvaluetadds/-tmethodtPATCHtdata(RtupdatetdicttTrueR	tparamsR
tget_objt	fail_jsontformattlookup_sitetjointindextvrf_reftNonetexistingt	exit_jsontprevioustsenttappendtsanitizetproposedt
check_modetrequest(RtmoduleRRRRRtmsot
schema_objtschema_pathR%tsite_idtsR"tsite_idxt
site_templateR>tvR&tvrf_idxtvrf_patht	vrfs_pathtopstpayload((sS/usr/lib/python2.7/site-packages/ansible/modules/network/aci/mso_schema_site_vrf.pytmainss|		%




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


+3	`

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