cisco.mso.ndo_tenant_netflow_monitor module – Manage NetFlow Monitor on Cisco Nexus Dashboard Orchestrator (NDO).
Note
This module is part of the cisco.mso collection (version 3.0.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_tenant_netflow_monitor.
New in cisco.mso 3.0.0
Synopsis
Manage NetFlow Monitor on Cisco Nexus Dashboard Orchestrator (NDO).
This module is only supported on ND v4.1 (NDO v5.1) 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 description of the NetFlow Monitor. Defaults to an empty string when unset during creation. |
|
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 NetFlow Monitor. |
|
The list of NetFlow Exporter references. At least one reference is required when the state is The old |
|
The reference of the NetFlow Exporter. This parameter or |
|
The name of the NetFlow Exporter. |
|
The template associated with the NetFlow Exporter. This parameter or |
|
The template ID associated with the NetFlow Exporter. This parameter or |
|
The UUID of the NetFlow Exporter. This parameter or |
|
The NetFlow Record reference details for the NetFlow Monitor. Providing an empty dictionary |
|
The reference details of the NetFlow Record. This parameter can be used instead of |
|
The name of the NetFlow Record. |
|
The template associated with the NetFlow Record. This parameter or |
|
The template ID associated with the NetFlow Record. This parameter or |
|
The UUID of the NetFlow Record. This parameter can be used instead of |
|
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 |
|
Use Use Use Choices:
|
|
The name of the template. The template must be a tenant template. This parameter or |
|
The ID of the tenant 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 |
|
The UUID of the NetFlow Monitor. This parameter is required when the |
|
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 Tenant template.The
netflow_recordmust exist before using it with this module in your playbook. Use cisco.mso.ndo_tenant_netflow_record to create the NetFlow Record.The
netflow_exportersmust exist before using this module in your playbook. Use cisco.mso.ndo_tenant_netflow_exporter to create the NetFlow Exporter.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_tenant_netflow_record
Manage NetFlow Record on Cisco Nexus Dashboard Orchestrator (NDO).
- cisco.mso.ndo_tenant_netflow_exporter
Manage NetFlow Exporter on Cisco Nexus Dashboard Orchestrator (NDO).
Examples
- name: Add a NetFlow Monitor
cisco.mso.ndo_tenant_netflow_monitor:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_tenant_template
name: netflow_monitor_1
description: NetFlow Monitor for testing
netflow_record:
reference:
name: netflow_record_1
template: ansible_tenant_template
netflow_exporters:
- reference:
name: netflow_exporter_1
template: ansible_tenant_template
state: present
register: add_netflow_monitor
- name: Update a NetFlow Monitor name using UUID
cisco.mso.ndo_tenant_netflow_monitor:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_tenant_template
name: netflow_monitor_1_updated
uuid: "{{ add_netflow_monitor.current.uuid }}"
netflow_exporters:
- reference:
name: netflow_exporter_1
template: ansible_tenant_template
- uuid: "{{ add_netflow_exporter_2.current.uuid }}"
state: present
- name: Query a NetFlow Monitor using name
cisco.mso.ndo_tenant_netflow_monitor:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_tenant_template
name: netflow_monitor_1_updated
state: query
register: query_one_with_name
- name: Query a NetFlow Monitor using UUID
cisco.mso.ndo_tenant_netflow_monitor:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_tenant_template
uuid: "{{ add_netflow_monitor.current.uuid }}"
state: query
register: query_one_with_uuid
- name: Query all NetFlow Monitors
cisco.mso.ndo_tenant_netflow_monitor:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_tenant_template
state: query
register: query_all
- name: Remove a NetFlow Monitor using name
cisco.mso.ndo_tenant_netflow_monitor:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_tenant_template
name: netflow_monitor_1_updated
state: absent
- name: Remove a NetFlow Monitor using UUID
cisco.mso.ndo_tenant_netflow_monitor:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_tenant_template
uuid: "{{ add_netflow_monitor.current.uuid }}"
state: absent