�
�Udac @` s� d d l m Z m Z m Z e Z i d d 6d g d 6d d 6Z d Z d Z d
Z d d l
m Z d d l m
Z
m Z d
� Z e d k r� e � n d S( i ( t absolute_importt divisiont print_functions 1.1t metadata_versiont previewt statust 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 MSOModulet mso_argument_specc C` s� t � } | j d t d d d t � d t d d d t � d t d d d t � d t d d d d g � d
t d d � d t d d d
d d d d d g � � t d | d t d d d d g g d d d g g g � } | j d } | j d } | j d } | j d } | j d
} | j d } t | � } | j d d | �} | sg| j d d j | � � n d j | � }
| d } | j
| � } g | d D] }
|
d |
d f ^ q�} | | f | k r�| j d d j | | d j | � � � n | j | | f � } d j | | � } | j
d! | d | d | � } g | d | d"