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.pyc

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZddlm
Z
mZd
�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	communitytsupported_bysO
---
module: mso_schema_site_bd
short_description: Manage site-local Bridge Domains (BDs) in schema template
description:
- Manage site-local BDs 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 to manage.
    type: str
    aliases: [ name ]
  host_route:
    description:
    - Whether host-based routing is enabled.
    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
seealso:
- module: mso_schema_site
- module: mso_schema_site_bd_l3out
- module: mso_schema_site_bd_subnet
- module: mso_schema_template_bd
extends_documentation_fragment: mso
s�
- name: Add a new site BD
  mso_schema_site_bd:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema1
    site: Site1
    template: Template1
    bd: BD1
    state: present
  delegate_to: localhost

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

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

- name: Query all site BDs
  mso_schema_site_bd:
    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`s�t�}|jdtdddt�dtdddt�dtdddt�dtdddd	g�d
tdd�dtddd
dddddg��td|dtddddggdddggg�}|jd}|jd}|jd}|jd}|jd
}|jd}t|�}|jdd|�}	|	sg|jddj	|��ndj	|	�}
|	d}|j
|�}g|	dD]}
|
d|
df^q�}||f|kr�|jddj	||dj|���n|j||f�}d j	||�}|j
d!|d|d|�}g|	d|d"D]}|d#^qO}|dk	r�||kr�|j|�}d$j	||�}|	d|d"||_n|dkr|dkr�|	d|d"|_n(|js|jdd%j	d|��n|j�nd&j	|�}g}|j|_|dkr�|jrZi|_|_|jtd'd(d)|��qZn�|dkrZ|js�|dkr�t}q�ntd#td*|d|d+|�d,|�}|j|d-t�|jr"|jtd'd.d)|d/|j��n)|jtd'd0d)|d1d/|j��|j|_n|js|j|
d2d3d4|�n|j�dS(5Ntschemattypetstrtrequiredtsitettemplatetbdtaliasestnamet
host_routetbooltstatetdefaulttpresenttchoicestabsenttqueryt
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_idtbdstbdRefs/sites/{0}/bds/{1}sBD '{bd}' not founds/sites/{0}/bdstoptremovetpathtschemaIdtbdNamethostBasedRoutingtcollatetreplacetvaluetadds/-tmethodtPATCHtdata(RtupdatetdicttTrueR	tparamsR
tget_objt	fail_jsontformattlookup_sitetjointindextbd_reftNonetexistingt	exit_jsontprevioustsenttappendtFalsetsanitizetproposedt
check_modetrequest(RtmoduleRRRRRRtmsot
schema_objtschema_pathR'tsite_idtsR$tsite_idxt
site_templateRAtvR(tbd_idxtbd_pathtbds_pathtopstpayload((sR/usr/lib/python2.7/site-packages/ansible/modules/network/aci/mso_schema_site_bd.pytmainys�		%






++)	
	"				()	t__main__N(t
__future__RRRR
t
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtansible.module_utils.basicR	t$ansible.module_utils.network.aci.msoR
RR[t__name__(((sR/usr/lib/python2.7/site-packages/ansible/modules/network/aci/mso_schema_site_bd.pyt<module>s


13	g

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