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

�
�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_bd_l3out
short_description: Manage site-local BD l3out's in schema template
description:
- Manage site-local BDs l3out's 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
  bd:
    description:
    - The name of the BD.
    type: str
    aliases: [ name ]
  l3out:
    description:
    - The name of the l3out.
    type: str
  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
notes:
- The ACI MultiSite PATCH API has a deficiency requiring some objects to be referenced by index.
  This can cause silent corruption on concurrent access when changing/removing on object as
  the wrong object may be referenced. This module is affected by this deficiency.
seealso:
- module: mso_schema_site_bd
- module: mso_schema_template_bd
extends_documentation_fragment: mso
sN
- name: Add a new site BD l3out
  mso_schema_site_bd_l3out:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema1
    site: Site1
    template: Template1
    bd: BD1
    l3out: L3out1
    state: present
  delegate_to: localhost

- name: Remove a site BD l3out
  mso_schema_site_bd_l3out:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema1
    site: Site1
    template: Template1
    bd: BD1
    l3out: L3out1
    state: absent
  delegate_to: localhost

- name: Query a specific site BD l3out
  mso_schema_site_bd_l3out:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema1
    site: Site1
    template: Template1
    bd: BD1
    l3out: L3out1
    state: query
  delegate_to: localhost
  register: query_result

- name: Query all site BD l3outs
  mso_schema_site_bd_l3out:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema1
    site: Site1
    template: Template1
    bd: BD1
    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|�}|	d|d!|d$}|dk	r(||kr(|j|�}d%j	|||�}|	d|d!|d$||_n|dkr�|dkr`|	d|d!|d$|_n(|js�|jdd&j	d|��n|j�nd'j	||�}g}|j|_|dkr|jrVi|_|_|jtd(d)d*|��qVnV|d
krV||_|jsG|jtd(d+d*|d,d-|��n|j|_n|js{|j|
d.d/d0|�n|j�dS(1Ntschemattypetstrtrequiredtsitettemplatetbdtl3outtaliasestnametstatetdefaulttpresenttchoicestabsenttqueryt
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_idtbdstbdRefs3Provided BD '{0}' does not exist. Existing BDs: {1}tl3Outss/sites/{0}/bds/{1}/l3Outs/{2}sL3out '{l3out}' not founds/sites/{0}/bds/{1}/l3Outstoptremovetpathtadds/-tvaluetmethodtPATCHtdata(RtupdatetdicttTrueR	tparamsR
tget_objt	fail_jsontformattlookup_sitetjointindextbd_reftNonetexistingt	exit_jsontprevioustsenttappendt
check_modetrequest(RtmoduleRRRRRRtmsot
schema_objtschema_pathR&tsite_idtsR#tsite_idxt
site_templateR<tvR'tbd_idxtl3outst	l3out_idxt
l3out_pathtl3outs_pathtops((sX/usr/lib/python2.7/site-packages/ansible/modules/network/aci/mso_schema_site_bd_l3out.pytmains|		%





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


37	^

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