cisco.mso.ndo_endpoint_ip_tag_policy module – Manage Endpoint IP Tag Policies 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_endpoint_ip_tag_policy.
New in cisco.mso 2.13.0
Synopsis
Manage Endpoint IP Tag Policies 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 list of annotations. Providing an empty list will remove the |
|
The annotation key. |
|
The value associated with |
|
The endpoint IP address of the Endpoint IP Tag Policy. |
|
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 |
|
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 |
|
The list of Policy Tags. Providing an empty list will remove the |
|
The Policy Tag key. |
|
The value associated with |
|
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 Policy template. This parameter or |
|
The ID of the template. The template must be a Tenant 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 |
|
The UUID of the Endpoint IP Tag Policy. The UUID must be used when updating |
|
If This should only set to If the value is not specified in the task, the value of environment variable The default is Choices:
|
|
The VRF reference details. |
|
The reference details of the VRF. This parameter can be used instead of |
|
The name of the VRF. |
|
The name of the schema associated with the VRF. This parameter can be used instead of |
|
The schema ID associated with the VRF. This parameter can be used instead of |
|
The name of the template associated with the VRF. This parameter can be used instead of |
|
The template ID associated with the VRF. This parameter can be used instead of |
|
The UUID of the VRF. This parameter can be used instead of |
Notes
Note
The
templatemust exist before using this module in your playbook. Use cisco.mso.ndo_template to create the Tenant Policy template.The
vrfmust exist before using this module in your playbook. Use cisco.mso.mso_schema_template_vrf to create the VRF.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.mso_schema_template_vrf
Manage VRFs in schema templates.
Examples
- name: Create an Endpoint IP Tag Policy
cisco.mso.ndo_endpoint_ip_tag_policy:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_tenant_policy_template
endpoint_ip_address: 1.1.1.1
vrf:
reference:
name: ansible_vrf
template: ansible_tenant_template
schema: ansible_schema
annotations:
- key: key_1
value: value_1
- key: key_2
value: value_2
policy_tags:
- key: key_1
value: value_1
- key: key_2
value: value_2
state: present
register: create_enpoint_ip_tag_policy
- name: Update an Endpoint IP Tag Policy using IP address and VRF
cisco.mso.ndo_endpoint_ip_tag_policy:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_tenant_policy_template
endpoint_ip_address: 1.1.1.1
vrf:
reference:
name: ansible_vrf
template: ansible_tenant_template
schema: ansible_schema
annotations:
- key: key_1
value: value_1
policy_tags:
- key: key_1
value: value_1
- key: key_2
value: value_2
- key: key_3
value: value_3
state: present
- name: Update an Endpoint IP Tag Policy using UUID
cisco.mso.ndo_endpoint_ip_tag_policy:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_tenant_policy_template
uuid: "{{ create_enpoint_ip_tag_policy.current.uuid }}"
endpoint_ip_address: 2.2.2.2
vrf:
reference:
name: ansible_vrf_2
template: ansible_tenant_template
schema: ansible_schema
annotations:
- key: key_1
value: value_1
policy_tags:
- key: key_1
value: value_1
- key: key_2
value: value_2
- key: key_3
value: value_3
state: present
- name: Query an Endpoint IP Tag Policy using IP address and VRF
cisco.mso.ndo_endpoint_ip_tag_policy:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_tenant_policy_template
endpoint_ip_address: 2.2.2.2
vrf:
reference:
name: ansible_vrf
template: ansible_tenant_template
schema: ansible_schema
state: query
register: query_with_ip_and_vrf
- name: Query an Endpoint IP Tag Policy using UUID
cisco.mso.ndo_endpoint_ip_tag_policy:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_test
uuid: "{{ create_enpoint_ip_tag_policy.current.uuid }}"
state: query
register: query_with_uuid
- name: Query all Endpoint IP Tag Policies in a template
cisco.mso.ndo_endpoint_ip_tag_policy:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_tenant_policy_template
state: query
register: query_all_objects
- name: Delete an Endpoint IP Tag Policy using its IP address and VRF
cisco.mso.ndo_endpoint_ip_tag_policy:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_tenant_policy_template
endpoint_ip_address: 1.1.1.1
vrf:
reference:
name: ansible_vrf
template: ansible_tenant_template
schema: ansible_schema
state: absent
- name: Delete an Endpoint IP Tag Policy using UUID
cisco.mso.ndo_endpoint_ip_tag_policy:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_tenant_policy_template
uuid: "{{ create_enpoint_ip_tag_policy.current.uuid }}"
state: absent