cisco.mso.ndo_ipsla_track_list module – Manage IPSLA Track Lists on Cisco Nexus Dashboard Orchestrator (NDO).
Note
This module is part of the cisco.mso collection (version 2.10.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_ipsla_track_list
.
Synopsis
Manage IP Service Level Agreement (SLA) Track Lists on Cisco Nexus Dashboard Orchestrator (NDO).
This module is only supported on ND v3.1 (NDO v4.3) 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 IPSLA Track List. |
|
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 name of the IPSLA Track List. |
|
The UUID of the IPSLA Track List. This parameter is required when the |
|
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 IPSLA Track List members. Providing a new list of Providing an empty list will remove the |
|
The destination IP of the member. Must be a valid IPv4 or IPv6 address. |
|
The IPSLA Monitoring Policy to use for the member. This parameter or |
|
The name of the IPSLA Monitoring Policy to use for the member. |
|
The IPSLA Monitoring Policy UUID to use for the member. This parameter or |
|
The BD or L3Out used as the scope for the member. This parameter or |
|
The name of the BD or L3Out used as the scope for the member. |
|
The name of the Schema associated with the BD scope. This parameter or |
|
The ID of the Schema associated with the BD scope. This parameter or |
|
The name of the Template associated with the BD or L3Out scope. This parameter or |
|
The ID of the Template associated with the BD or L3Out scope. This parameter or |
|
The scope type of the member. Choices:
|
|
The UUID of the BD or L3Out used as the scope for the member. This parameter or |
|
The weight of the member. The default value is 10. |
|
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 template. The template must be a tenant template. This parameter or |
|
The IPSLA Track List percentage or weight down threshold. The value must be in the range 0 - 100 when The value must be in the range 0 - 255 when The value must be less than or equal to The default value is 0. |
|
The IPSLA Track List percentage or weight up threshold. The value must be in the range 0 - 100 when The value must be in the range 0 - 255 when The value must be greater than or equal to The default value is 1. |
|
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 |
|
The IPSLA Track List type used for determining up or down status. This parameter is required when creating the IPSLA Track List. Choices:
|
|
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 Tenant template.The
members.ipsla_monitoring_policy
must exist before addingmembers
. Use cisco.mso.ndo_ipsla_monitoring_policy to create an IPSLA Monitoring Policy.The
members.scope
as either a BD or L3Out must exist before addingmembers
. Use cisco.mso.ndo_l3out_template to create an L3Out. Use cisco.mso.mso_schema_template_bd to create a BD.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_ipsla_monitoring_policy
Manage IPSLA Monitoring Policies on Cisco Nexus Dashboard Orchestrator (NDO).
- cisco.mso.ndo_l3out_template
Manage L3Outs on Cisco Nexus Dashboard Orchestrator (NDO).
- cisco.mso.mso_schema_template_bd
Manage Bridge Domains (BDs) in schema templates.
Examples
- name: Create a new IPSLA Track List
cisco.mso.ndo_ipsla_track_list:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_tenant_template
ipsla_track_list: ansible_test_ipsla_track_list
description: Example track list
type: percentage
threshold_up: 10
threshold_down: 2
members:
- destination_ip: 1.1.1.1
scope_type: bd
scope:
name: ansible_test_bd
template: ansible_test_template
schema: ansible_test_schema
ipsla_monitoring_policy:
name: ansible_test_ipsla_monitoring_policy
- destination_ip: 2001:0000:130F:0000:0000:09C0:876A:130B
scope_type: l3out
scope:
name: ansible_test_l3out
template: ansible_test_template
ipsla_monitoring_policy_uuid: "{{ ipsla_mon_pol.current.uuid }}"
- destination_ip: 1.1.1.2
scope_type: l3out
scope_uuid: "{{ l3out.current.uuid }}"
ipsla_monitoring_policy:
name: ansible_test_ipsla_monitoring_policy
state: present
register: ipsla_track_list
- name: Update an IPSLA Track List name with UUID
cisco.mso.ndo_ipsla_track_list:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_tenant_template
ipsla_track_list: ansible_test_ipsla_track_list_updated
ipsla_track_list_uuid: "{{ ipsla_track_list.current.uuid }}"
state: present
register: ipsla_track_list_update
- name: Query an IPSLA Track List with name
cisco.mso.ndo_ipsla_track_list:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_tenant_template
ipsla_track_list: ansible_test_ipsla_track_list
state: query
register: query_one
- name: Query an IPSLA Track List with UUID
cisco.mso.ndo_ipsla_track_list:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_tenant_template
ipsla_track_list_uuid: "{{ query_one.current.uuid }}"
state: query
register: query_one_uuid
- name: Query all IPSLA Track Lists in the template
cisco.mso.ndo_ipsla_track_list:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_tenant_template
state: query
register: query_all
- name: Remove all members from an IPSLA Track List
cisco.mso.ndo_ipsla_track_list:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_tenant_template
ipsla_track_list: ansible_test_ipsla_track_list
type: percentage
members: []
state: present
- name: Delete an IPSLA Track List with name
cisco.mso.ndo_ipsla_track_list:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_tenant_template
ipsla_track_list: ansible_test_ipsla_track_list
state: absent
- name: Delete an IPSLA Track List with UUID
cisco.mso.ndo_ipsla_track_list:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_tenant_template
ipsla_track_list_uuid: "{{ query_one.current.uuid }}"
state: absent