�
�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_bys�
---
module: mso_schema_site_anp_epg_domain
short_description: Manage site-local EPG domains in schema template
description:
- Manage site-local EPG domains in schema template on Cisco ACI Multi-Site.
author:
- Nirav Katarmal (@nkatarmal-crest)
version_added: '2.9'
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
anp:
description:
- The name of the ANP.
type: str
required: yes
epg:
description:
- The name of the EPG.
type: str
required: yes
domain_association_type:
description:
- The type of domain to associate.
type: str
choices: [ vmmDomain, l3ExtDomain, l2ExtDomain, physicalDomain, fibreChannel ]
domain_profile:
description:
- The domain profile name.
type: str
deployment_immediacy:
description:
- The deployment immediacy of the domain.
- C(immediate) means B(Deploy immediate).
- C(lazy) means B(deploy on demand).
type: str
choices: [ immediate, lazy ]
resolution_immediacy:
description:
- Determines when the policies should be resolved and available.
- Defaults to C(lazy) when unset during creation.
type: str
choices: [ immediate, lazy, pre-provision ]
micro_seg_vlan_type:
description:
- Virtual LAN type for microsegmentation. This attribute can only be used with vmmDomain domain association.
type: str
micro_seg_vlan:
description:
- Virtual LAN for microsegmentation. This attribute can only be used with vmmDomain domain association.
type: int
port_encap_vlan_type:
description:
- Virtual LAN type for port encap. This attribute can only be used with vmmDomain domain association.
type: str
port_encap_vlan:
description:
- Virtual LAN type for port encap. This attribute can only be used with vmmDomain domain association.
type: int
vlan_encap_mode:
description:
- Which VLAN enacap mode to use. This attribute can only be used with vmmDomain domain association.
type: str
choices: [ static, dynamic ]
allow_micro_segmentation:
description:
- Specifies microsegmentation is enabled or not. This attribute can only be used with vmmDomain domain association.
type: bool
switch_type:
description:
- Which switch type to use with this domain association. This attribute can only be used with vmmDomain domain association.
type: str
switching_mode:
description:
- Which switching mode to use with this domain association. This attribute can only be used with vmmDomain domain association.
type: str
enhanced_lagpolicy_name:
description:
- EPG enhanced lagpolicy name. This attribute can only be used with vmmDomain domain association.
type: str
enhanced_lagpolicy_dn:
description:
- Distinguished name of EPG lagpolicy. This attribute can only be used with vmmDomain domain association.
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_anp_epg
- module: mso_schema_template_anp_epg
extends_documentation_fragment: mso
s�
- name: Add a new static leaf to a site EPG
mso_schema_site_anp_epg_domain:
host: mso_host
username: admin
password: SomeSecretPassword
schema: Schema1
site: Site1
template: Template1
anp: ANP1
epg: EPG1
domain_association_type: vmmDomain
domain_profile: 'VMware-VMM'
deployment_immediacy: lazy
resolution_immediacy: pre-provision
state: present
delegate_to: localhost
- name: Remove a static leaf from a site EPG
mso_schema_site_anp_epg_domain:
host: mso_host
username: admin
password: SomeSecretPassword
schema: Schema1
site: Site1
template: Template1
anp: ANP1
epg: EPG1
domain_association_type: vmmDomain
domain_profile: 'VMware-VMM'
deployment_immediacy: lazy
resolution_immediacy: pre-provision
state: absent
delegate_to: localhost
- name: Query a specific site EPG static leaf
mso_schema_site_anp_epg_domain:
host: mso_host
username: admin
password: SomeSecretPassword
schema: Schema1
site: Site1
template: Template1
anp: ANP1
epg: EPG1
domain_association_type: vmmDomain
domain_profile: 'VMware-VMM'
state: query
delegate_to: localhost
register: query_result
- name: Query all site EPG static leafs
mso_schema_site_anp_epg_domain:
host: mso_host
username: admin
password: SomeSecretPassword
schema: Schema1
site: Site1
template: Template1
anp: ANP1
epg: EPG1
state: query
delegate_to: localhost
register: query_result
t
( t
AnsibleModule( t MSOModulet mso_argument_specc 4 + 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 t � d t d d d t � d t d d d
d d d
d d g � d t d d � d t d d d
d d g � d t d d d
d d d g � d t d d d d d
d d d g � d t d d � d t d d � d t d d � d t d d � d t d d d
d! d"