cisco.mso.ndo_fabric_span_session_source_filter module – Manage Fabric SPAN Sessions Source Filter on Cisco Nexus Dashboard Orchestrator (NDO).
Note
This module is part of the cisco.mso collection (version 2.13.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_filter.
New in cisco.mso 2.11.0
Synopsis
Manage Switched Port Analyzer (SPAN) Sessions Source Filter on Cisco Nexus Dashboard Orchestrator (NDO).
This module is only supported on ND v3.1 (NDO v4.4) and later.
This module allows for creation and deletion only; updates are not supported.
Requirements
The below requirements are needed on the host that executes this module.
Multi Site Orchestrator v2.1 or newer
Parameters
Parameter |
Comments |
|---|---|
The destination IP prefix for the SPAN Session source filter. This filters traffic based on the destination IP address. This can be a valid IPv4 or IPv6 address. |
|
The starting destination port number for the SPAN Session source filter. This parameter is required to query/delete a specific SPAN session source filter when not configured with “unspecified”. Choices:
|
|
The ending destination port number for the SPAN Session source filter. This parameter is required to query/delete a specific SPAN session source filter when not configured with “unspecified”. Choices:
|
|
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 IP protocol for the SPAN Session source filter. This filters traffic based on the Layer 3 or Layer 4 protocol. This parameter is required to query/delete a specific SPAN session source filter when not configured with “unspecified”. Choices:
|
|
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 |
|
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 source IP prefix for the SPAN Session source filter. This filters traffic based on the source IP address. This can be a valid IPv4 or IPv6 address. |
|
The starting source port number for the SPAN Session source filter. This parameter is required to query/delete a specific SPAN session source filter when not configured with “unspecified”. Choices:
|
|
The ending source port number for the SPAN Session source filter. This parameter is required to query/delete a specific SPAN session source filter when not configured with “unspecified”. Choices:
|
|
The name of the SPAN Session. This parameter or |
|
The name of the SPAN Session source. |
|
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
templatemust exist before using this module in your playbook. Use cisco.mso.ndo_template to create the Fabric Monitoring Access Policy template.The
span_session_namemust exist before using this module in your playbook. Use cisco.mso.ndo_fabric_span_session to create the Fabric SPAN Session.The
span_session_source_namemust exist before using this module in your playbook. Use cisco.mso.ndo_fabric_span_session_source to create the Fabric SPAN Session Source.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.ndo_fabric_span_session_source
Manage Fabric SPAN Sessions Source on Cisco Nexus Dashboard Orchestrator (NDO).
Examples
- name: Create SPAN Session source with IPv4 address
cisco.mso.ndo_fabric_span_session_source_filter:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_test_mon_pol
span_session_name: ansible_test_span_session
span_session_source_name: ansible_test_source_1
source_ip_prefix: 1.1.1.1
destination_ip_prefix: 2.2.2.2
source_port_from: http
source_port_to: https
destination_port_from: http
destination_port_to: https
ip_protocol: tcp
state: present
- name: Create SPAN Session source filter with IPv6 address
cisco.mso.ndo_fabric_span_session_source_filter:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_test_mon_pol
span_session_name: ansible_test_span_session
span_session_source_name: ansible_test_source_1
source_ip_prefix: 1::1
destination_ip_prefix: 2::2
source_port_from: 20
source_port_to: 22
destination_port_from: 25
destination_port_to: 110
ip_protocol: 6
state: present
- name: Query a specific SPAN Session source filter
cisco.mso.ndo_fabric_span_session_source_filter:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_test_mon_pol
span_session_name: ansible_test_span_session
span_session_source_name: ansible_test_source_1
source_ip_prefix: 1.1.1.1
destination_ip_prefix: 2.2.2.2
source_port_from: "ftp_data"
source_port_to: "ssh"
destination_port_from: "smtp"
destination_port_to: "pop3"
ip_protocol: "tcp"
state: query
register: query_one
- name: Query all SPAN Session source filters
cisco.mso.ndo_fabric_span_session_source_filter:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_test_mon_pol
span_session_name: ansible_test_span_session
span_session_source_name: ansible_test_source_1
state: query
register: query_all
- name: Delete a specific SPAN Session source filter
cisco.mso.ndo_fabric_span_session_source_filter:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_test_mon_pol
span_session_name: ansible_test_span_session
span_session_source_name: ansible_test_source_1
source_ip_prefix: 1.1.1.1
destination_ip_prefix: 2.2.2.2
source_port_from: 20
source_port_to: 22
destination_port_from: 25
destination_port_to: 110
ip_protocol: 6
state: absent