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_l3out.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_l3out
short_description: Manage l3outs in schema templates
description:
- Manage l3outs 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
  l3out:
    description:
    - The name of the l3out 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 L3out.
    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 L3out
  mso_schema_template_l3out:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema 1
    template: Template 1
    l3out: L3out 1
    state: present
  delegate_to: localhost

- name: Remove an L3out
  mso_schema_template_l3out:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema 1
    template: Template 1
    l3out: L3out 1
    state: absent
  delegate_to: localhost

- name: Query a specific L3outs
  mso_schema_template_l3out:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema 1
    template: Template 1
    l3out: L3out 1
    state: query
  delegate_to: localhost
  register: query_result

- name: Query all L3outs
  mso_schema_template_l3out:
    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`sBt�}|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&|�}|j|d't�|jr�|jtd#d(d%|d)|j��n)|jtd#d*d%|d+d)|j��|j|_n|js4|j|d,d-d.|�n|j�dS(/Ntschemattypetstrtrequiredttemplatetl3outtaliasestnamet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, tintersiteL3outssL3out '{l3out}' not founds/templates/{0}/intersiteL3outss"/templates/{0}/intersiteL3outs/{1}toptremovetpathtvrfReftcollatetreplacetvaluetadds/-tmethodtPATCHtdata(RtupdateRtTrueRR	tparamsR
tget_objt	fail_jsontformattjointindextNonetexistingt	exit_jsontprevioustsenttappendtmake_referencetsanitizetproposedt
check_modetrequest(R tmoduleRRRRRRtmsot
schema_objt	schema_idtschema_pathttR'ttemplate_idxtltl3outst	l3out_idxtl3outs_patht
l3out_pathtopstvrf_reftpayload((sY/usr/lib/python2.7/site-packages/ansible/modules/network/aci/mso_schema_template_l3out.pytmainos~		%





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


+/"	_

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