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_vrf.pyo

�
�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_vrf
short_description: Manage VRFs in schema templates
description:
- Manage VRFs 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
  vrf:
    description:
    - The name of the VRF to manage.
    type: str
    aliases: [ name ]
  display_name:
    description:
    - The name as displayed on the MSO web interface.
    type: str
  layer3_multicast:
    description:
    - Whether to enable L3 multicast.
    type: bool
  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 VRF
  mso_schema_template_vrf:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema 1
    template: Template 1
    vrf: VRF 1
    state: present
  delegate_to: localhost

- name: Remove an VRF
  mso_schema_template_vrf:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema 1
    template: Template 1
    vrf: VRF1
    state: absent
  delegate_to: localhost

- name: Query a specific VRFs
  mso_schema_template_vrf:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema 1
    template: Template 1
    vrf: VRF1
    state: query
  delegate_to: localhost
  register: query_result

- name: Query all VRFs
  mso_schema_template_vrf:
    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`st�}|jdtdddt�dtdddt�dtddddg�d	tdd�d
tdd�dtddd
dddddg��td|dtddddggdddggg�}|jd}|jd}|jd}|jd	}|jd
}|jd}t|�}|jdd|�}	|	sa|jddj	|��ndj	|	�}
g|	dD]}|d^q{}||kr�|jddj	|dj
|���n|j|�}
g|	d|
dD]}|d^q�}|dk	r@||kr@|j|�}|	d|
d||_
n|dkr�|dkrp|	d|
d|_
n(|j
s�|jddj	d|��n|j�ndj	|�}d j	||�}g}|j
|_|dkr|j
r�i|_|_
|jtd!d"d#|��q�n�|dkr�|dkrJ|j
rJ|}ntd|d|d$|d%g�}|j|d&t�|j
r�|jtd!d'd#|d(|j��n)|jtd!d)d#|d*d(|j��|j|_
n|js|j|
d+d,d-|�n|j�dS(.Ntschemattypetstrtrequiredttemplatetvrftaliasestnametdisplay_nametlayer3_multicasttbooltstatetdefaulttpresenttchoicestabsenttqueryt
argument_spectsupports_check_modetrequired_iftschemastdisplayNametmsgs$Provided schema '{0}' does not existsschemas/{id}t	templatess?Provided template '{0}' does not exist. Existing templates: {1}s, tvrfssVRF '{vrf}' not founds/templates/{0}/vrfss/templates/{0}/vrfs/{1}toptremovetpathtl3MCasttregionstcollatetreplacetvaluetadds/-tmethodtPATCHtdata(RtupdatetdicttTrueR	tparamsR
tget_objt	fail_jsontformattjointindextNonetexistingt	exit_jsontprevioustsenttappendtsanitizetproposedt
check_modetrequest(RtmoduleRRRRRRtmsot
schema_objtschema_pathttR%ttemplate_idxtvR&tvrf_idxt	vrfs_pathtvrf_pathtopstpayload((sW/usr/lib/python2.7/site-packages/ansible/modules/network/aci/mso_schema_template_vrf.pytmainos|		%





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


+/"	]

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