cisco.mso.ndo_fabric_span_session_source module – Manage Fabric SPAN Sessions Source on Cisco Nexus Dashboard Orchestrator (NDO).
Note
This module is part of the cisco.mso collection (version 2.11.0).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install cisco.mso
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: cisco.mso.ndo_fabric_span_session_source
.
New in cisco.mso 2.11.0
Synopsis
Manage Switched Port Analyzer (SPAN) Sessions Source on Cisco Nexus Dashboard Orchestrator (NDO).
This module is only supported on ND v3.1 (NDO v4.4) and later.
Requirements
The below requirements are needed on the host that executes this module.
Multi Site Orchestrator v2.1 or newer
Parameters
Parameter |
Comments |
---|---|
The Access Path of the SPAN Session source. Providing a new list of Providing an empty list will remove the |
|
The type of the Access Path. Choices:
|
|
The interface of the Node. This parameter is required to configure the |
|
The name of the ‘Port Channel’ or ‘Virtual Port Channel’ which is used to create the Access Path. |
|
The ID of the Node. This parameter is required when |
|
The name of the Fabric Resource Policy template. This parameter or |
|
The ID of the Fabric Resource Policy template. This parameter or |
|
The UUID of the ‘Access Port’ or ‘Port Channel’, or ‘Virtual Port Channel’ which is used to create the Access Path. |
|
The direction of the SPAN Session source. Defaults to Choices:
|
|
The Filter EPG of the SPAN Session source. When the Filter EPG is specified in the configuration, the Filter L3Out will be removed. This parameter and Providing an empty dictionary |
|
The EPG object detail used to configure the Filter EPG. This parameter or |
|
The name of the ANP that contains the EPG. This parameter or |
|
The UUID of the ANP that contains the EPG. This parameter or |
|
The name of the EPG. |
|
The name of the schema that contains the EPG. This parameter or |
|
The ID of the schema that contains the EPG. This parameter or |
|
The name of the template that contains the EPG. This parameter or |
|
The ID of the template that contains the EPG. This parameter or |
|
The UUID of the EPG used to configure the Filter EPG. This parameter or |
|
The Filter L3Out of the SPAN Session source. When the Filter L3Out is specified in the configuration, the Filter EPG will be removed. This parameter and The L3Out must be defined in either the L3Out template or directly within the APIC tenant. The Filter L3Out for a SPAN Session source does not support using an L3Out from an application tenant template. Providing an empty dictionary |
|
The Filter L3Out object detail used to configure the Filter L3Out. This parameter or |
|
The name of the L3Out. |
|
The name of the L3Out template. This parameter or |
|
The ID of the L3Out template. This parameter or |
|
The name of the tenant. This parameter is used to associate the L3Out from APIC. This parameter or |
|
The UUID of the L3Out. This parameter or |
|
The ID of the VLAN, which is associated with L3Out interface. This parameter is required to configure the Filter L3Out. |
|
IP Address or hostname of the ACI Multi Site Orchestrator host. If the value is not specified in the task, the value of environment variable |
|
The login domain name to use for authentication. The default value is Local. If the value is not specified in the task, the value of environment variable When using a HTTPAPI connection plugin the inventory variable |
|
The name of the SPAN Session source. |
|
Influence the output of this MSO module.
If the value is not specified in the task, the value of environment variable Choices:
|
|
The password to use for authentication. If the value is not specified in the task, the value of environment variables |
|
Port number to be used for the REST connection. The default value depends on parameter `use_ssl`. If the value is not specified in the task, the value of environment variable |
|
The SPAN Drop Packets of the SPAN Session source. SPAN Drop Packets are packets that get dropped when the SPAN destination port cannot handle the volume of mirrored traffic from the source ports. Defaults to The Choices:
|
|
The name of the SPAN Session. This parameter or |
|
The UUID of the SPAN Session. This parameter or |
|
Use Use Use Choices:
|
|
The name of the template. The template must be a Fabric Monitoring Access Policy template. This parameter or |
|
The ID of the template. The template must be a Fabric Monitoring Access Policy template. This parameter or |
|
The socket level timeout in seconds. The default value is 30 seconds. If the value is not specified in the task, the value of environment variable |
|
If If the value is not specified in the task, the value of environment variable The default is Choices:
|
|
If If the value is not specified in the task, the value of environment variable When using a HTTPAPI connection plugin the inventory variable The default is Choices:
|
|
The username to use for authentication. If the value is not specified in the task, the value of environment variables |
|
If This should only set to If the value is not specified in the task, the value of environment variable The default is Choices:
|
Notes
Note
The
template
must exist before using this module in your playbook. Use cisco.mso.ndo_template to create the Fabric Monitoring Access Policy template.The
span_session_name
must exist before using this module in your playbook. Use cisco.mso.ndo_fabric_span_session to create the Fabric SPAN Session.The
filter_epg.reference
must exist before using it with this module in your playbook. Use cisco.mso.mso_schema_template_anp_epg to create the EPG.The
filter_l3out.reference
must exist before using it with this module in your playbook. Use cisco.mso.ndo_l3out_template to create the L3Out.The
access_paths.name
must exist before using it with this module in your playbook. Use cisco.mso.ndo_port_channel_interface to create the Fabric resource port channel interface.The
access_paths.name
must exist before using it with this module in your playbook. Use cisco.mso.ndo_virtual_port_channel_interface to create the Fabric resource virtual port channel interface.This module was written to support Multi Site Orchestrator v2.1 or newer. Some or all functionality may not work on earlier versions.
See Also
See also
- cisco.mso.ndo_template
Manage Templates on Cisco Nexus Dashboard Orchestrator (NDO).
- cisco.mso.ndo_fabric_span_session
Manage Fabric SPAN Sessions on Cisco Nexus Dashboard Orchestrator (NDO).
- cisco.mso.mso_schema_template_anp_epg
Manage Endpoint Groups (EPGs) in schema templates.
- cisco.mso.ndo_port_channel_interface
Manage Port Channel Interfaces on Cisco Nexus Dashboard Orchestrator (NDO).
- cisco.mso.ndo_virtual_port_channel_interface
Manage Virtual Port Channel Interfaces on Cisco Nexus Dashboard Orchestrator (NDO).
Examples
- name: Create the SPAN Session source with access paths
cisco.mso.ndo_fabric_span_session_source:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_test_mon_pol
span_session_name: ansible_test_span_session
name: ansible_test_source_2
direction: outgoing
span_drop_packets: true
access_paths:
- access_path_type: port
node: 101
interface: eth1/6
- access_path_type: port_channel
name: ansible_test_pc1
template: ansible_test_fabric_resource
- access_path_type: virtual_port_channel
name: ansible_test_vpc1
template: ansible_test_fabric_resource
- access_path_type: vpc_component_pc
name: ansible_test_vpc1
template: ansible_test_fabric_resource
node: 101
state: present
register: add_ansible_test_source_2
- name: Create the SPAN Session source with access path and filter EPG
cisco.mso.ndo_fabric_span_session_source:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_test_mon_pol
span_session_name: ansible_test_span_session
name: ansible_test_source_3
direction: outgoing
access_paths:
- access_path_type: port
node: 101
interface: eth1/6
filter_epg:
reference:
schema: ansible_test_schema
template: template1
anp: ansible_test_anp
name: ansible_test_epg1
state: present
- name: Create the SPAN Session source with access path and filter L3Out
cisco.mso.ndo_fabric_span_session_source:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_test_mon_pol
span_session_name: ansible_test_span_session
name: ansible_test_source_4
direction: outgoing
access_paths:
- access_path_type: port
node: 101
interface: eth1/1
filter_l3out:
reference:
name: ansible_test_l3out
template: ansible_test_l3out_template
vlan_id: 41
state: present
- name: Create the SPAN Session source with access paths UUID
cisco.mso.ndo_fabric_span_session_source:
host: mso_host
username: admin
password: SomeSecretPassword
template_id: "{{ add_span_session.current.templateId }}"
span_session_uuid: "{{ add_span_session.current.uuid }}"
name: ansible_test_source_1
access_paths:
- access_path_type: port
node: 101
interface: eth1/1
- access_path_type: port_channel
uuid: "{{ add_fabric_pc_1.current.uuid }}"
- access_path_type: virtual_port_channel
uuid: "{{ add_fabric_vpc1.current.uuid }}"
- access_path_type: vpc_component_pc
uuid: "{{ add_fabric_vpc1.current.uuid }}"
node: 101
state: present
- name: Update the SPAN Session source Filter EPG using UUID
cisco.mso.ndo_fabric_span_session_source:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_test_mon_pol
span_session_name: ansible_test_span_session
name: ansible_test_source_1
direction: outgoing
filter_epg:
uuid: "{{ add_epg.current.epg }}"
state: present
- name: Update the SPAN Session source Filter L3Out using UUID
cisco.mso.ndo_fabric_span_session_source:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_test_mon_pol
span_session_name: ansible_test_span_session
name: ansible_test_source_1
direction: outgoing
access_paths:
- access_path_type: port_channel
name: ansible_test_pc1
template: ansible_test_fabric_resource
filter_l3out:
uuid: "{{ add_l3out.current.uuid }}"
vlan_id: 42
state: present
- name: Query a specific SPAN Session source
cisco.mso.ndo_fabric_span_session_source:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_test_mon_pol
span_session_name: ansible_test_span_session
name: ansible_test_source_1
state: query
register: query_one
- name: Query all SPAN Session sources
cisco.mso.ndo_fabric_span_session_source:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_test_mon_pol
span_session_name: ansible_test_span_session
state: query
register: query_all
- name: Delete the SPAN Session source
cisco.mso.ndo_fabric_span_session_source:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_test_mon_pol
span_session_name: ansible_test_span_session
name: ansible_test_source_1
state: absent