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_bd.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_bd
short_description: Manage Bridge Domains (BDs) in schema templates
description:
- Manage BDs 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
  bd:
    description:
    - The name of the BD 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 BD. This is required only when creating a new BD.
    type: dict
    suboptions:
      name:
        description:
        - The name of the VRF to associate with.
        required: true
        type: str
  subnets:
    description:
    - The subnets associated to this BD.
    type: list
    suboptions:
      ip:
        description:
        - The IP range in CIDR notation.
        type: str
        required: true
      description:
        description:
        - The description of this subnet.
        type: str
      scope:
        description:
        - The scope of the subnet.
        type: str
        choices: [ private, public ]
      shared:
        description:
        - Whether this subnet is shared between VRFs.
        type: bool
      no_default_gateway:
        description:
        - Whether this subnet has a default gateway.
        type: bool
  intersite_bum_traffic:
    description:
    - Whether to allow intersite BUM traffic.
    type: bool
  optimize_wan_bandwidth:
    description:
    - Whether to optimize WAN bandwidth.
    type: bool
  layer2_stretch:
    description:
    - Whether to enable L2 stretch.
    type: bool
  layer2_unknown_unicast:
    description:
    - Layer2 unknown unicast.
    type: str
    choices: [ flood, proxy ]
  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 BD
  mso_schema_template_bd:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema 1
    template: Template 1
    bd: BD 1
    vrf:
      name: VRF1
    state: present
  delegate_to: localhost

- name: Remove an BD
  mso_schema_template_bd:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema 1
    template: Template 1
    bd: BD1
    state: absent
  delegate_to: localhost

- name: Query a specific BDs
  mso_schema_template_bd:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema 1
    template: Template 1
    bd: BD1
    state: query
  delegate_to: localhost
  register: query_result

- name: Query all BDs
  mso_schema_template_bd:
    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_spectmso_subnet_specc!C`sQt�}|jdtdddt�dtdddt�dtddddg�d	tdd�d
tdd�dtdd�d
tdd�dtdddddg�dtdd�dtdddt��dtdddt��dtddddddddg��td|dtddddggddddggg�}|jd}|jd}|jd}|jd	}|jd
}|jd}|jd
}|jd}	|jd}
|jd}|jd}|jd}
t|�}|j	d d!|�}|r|d"}n|j
d#d$j|��d%j|�}g|d&D]}|d^qN}||kr�|j
d#d'j|d(j|���n|j
|�}g|d&|d)D]}|d^q�}|dk	r||kr|j
|�}|d&|d)||_n|
dkrx|dkrC|d&|d)|_n(|jsk|j
d#d*jd|��n|j�nd+j|�}d,j||�}g}|j|_|
dkr�|jri|_|_|jtd-d.d/|��qn,|
dkr|j|d||�}|j|�}|dkrD|jrD|}n|dkrc|jrcg}ntd|d!|d0|d1|d2|	d3|d4|
d|d5|�	}|j|d6t�|jr�|jtd-d7d/|d8|j��n)|jtd-d9d/|d:d8|j��|j|_n|jsC|j|d;d<d=|�n|j�dS(>Ntschemattypetstrtrequiredttemplatetbdtaliasestnametdisplay_nametintersite_bum_traffictbooltoptimize_wan_bandwidthtlayer2_stretchtlayer2_unknown_unicasttchoicestfloodtproxytlayer3_multicasttvrftdicttoptionstsubnetstlisttstatetdefaulttpresenttabsenttqueryt
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, tbdssBD '{bd}' not founds/templates/{0}/bdss/templates/{0}/bds/{1}toptremovetpathtintersiteBumTrafficAllowtoptimizeWanBandwidthtl2UnknownUnicastt	l2Stretchtl3MCasttvrfReftcollatetreplacetvaluetadds/-tmethodtPATCHtdata(RtupdateR!tTrueRR
R	tparamsR
tget_objt	fail_jsontformattjointindextNonetexistingt	exit_jsontprevioustsenttappendtmake_referencetmake_subnetstsanitizetproposedt
check_modetrequest(R*tmoduleRRRRRRRRRR R#R%tmsot
schema_objt	schema_idtschema_pathttR1ttemplate_idxtbR2tbd_idxtbds_pathtbd_pathtopstvrf_reftpayload((sV/usr/lib/python2.7/site-packages/ansible/modules/network/aci/mso_schema_template_bd.pytmain�s�		%











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


a1"	t

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