cisco.mso.mso_schema_template_bd – Manage Bridge Domains (BDs) in schema templates¶
Note
This plugin is part of the cisco.mso collection (version 1.1.0).
To install it use: ansible-galaxy collection install cisco.mso
.
To use it in a playbook, specify: cisco.mso.mso_schema_template_bd
.
Requirements¶
The below requirements are needed on the host that executes this module.
Multi Site Orchestrator v2.1 or newer
Parameters¶
Notes¶
Note
Please read the Cisco ACI Guide for more detailed information on how to manage your ACI infrastructure using Ansible.
This module was written to support ACI Multi Site Orchestrator v2.1 or newer. Some or all functionality may not work on earlier versions.
Examples¶
- name: Add a new BD
cisco.mso.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: Add a new BD from another Schema
mso_schema_template_bd:
host: mso_host
username: admin
password: SomeSecretPassword
schema: Schema 1
template: Template 1
bd: BD 1
vrf:
name: VRF1
schema: Schema Origin
template: Template Origin
state: present
delegate_to: localhost
- name: Add bd with options available on version 3.1
mso_schema_template_bd:
host: mso_host
username: admin
password: SomeSecretPassword
schema: Schema 1
template: Template 1
bd: BD 1
intersite_bum_traffic: true
optimize_wan_bandwidth: false
layer2_stretch: true
layer2_unknown_unicast: flood
layer3_multicast: false
unknown_multicast_flooding: flood
multi_destination_flooding: drop
ipv6_unknown_multicast_flooding: flood
arp_flooding: false
virtual_mac_address: 00:00:5E:00:01:3C
subnets:
- subnet: 10.0.0.128/24
- subnet: 10.0.1.254/24
description: 1234567890
- ip: 192.168.0.254/24
description: "My description for a subnet"
scope: private
shared: false
no_default_gateway: true
vrf:
name: vrf1
schema: Test
template: Template1
dhcp_policy:
name: ansible_test
version: 1
dhcp_option_policy:
name: ansible_test_option
version: 1
- name: Remove an BD
cisco.mso.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
cisco.mso.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
cisco.mso.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
Authors¶
Dag Wieers (@dagwieers)
Shreyas Srish (@shrsr)