cisco.mso.ndo_l3out_secondary_ip module – Manage L3Out Secondary IP Address on Cisco Nexus Dashboard Orchestrator (NDO).
Note
This module is part of the cisco.mso collection (version 2.12.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_l3out_secondary_ip.
New in cisco.mso 2.12.0
Synopsis
Manage L3Out L3Out Secondary IP Address 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 |
|---|---|
Whether to enable Dynamic Host Configuration Protocol (DHCP) relay. If this parameter is unspecified, NDO defaults to Choices:
|
|
The name of the domain. |
|
The provider of the domain. Choices:
|
|
The type of the domain. Choices:
|
|
The encapsulation type of the interface. Choices:
|
|
The encapsulation value of the interface. The option The option |
|
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 |
|
Whether to enable IPv6 Duplicate Address Detection (DAD). If this parameter is unspecified, NDO defaults to If this parameter is unspecified, NDO defaults to Choices:
|
|
The name of the L3Out. This parameter or |
|
The UUID of the L3Out. This parameter or |
|
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 |
|
Whether to enable Neighbor Discovery (ND) Router Advertisement (RA). If this parameter is unspecified, NDO defaults to Choices:
|
|
The ID of the node (border leaf switch). |
|
Influence the output of this MSO module.
If the value is not specified in the task, the value of environment variable Choices:
|
|
The parent type of the L3Out. Choices:
|
|
The password to use for authentication. If the value is not specified in the task, the value of environment variables |
|
The path of the interface. The path must be an existing physical port (eg. eth1/1). |
|
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 port channel details. |
|
The reference details of the port channel. This parameter or |
|
The name of the port channel. |
|
The name of the template that contains the port channel. This parameter or |
|
The ID of the template that contains the port channel. This parameter or |
|
The UUID of the port channel. This parameter or |
|
The secondary IP address. |
|
Use Use Use Choices:
|
|
The name of the L3Out template. This parameter or |
|
The ID of the L3Out 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:
|
|
The virtual port channel details. |
|
The reference details of the virtual port channel. This parameter or |
|
The name of the virtual port channel. |
|
The name of the template that contains the virtual port channel. This parameter or |
|
The ID of the template that contains the virtual port channel. This parameter or |
|
Whether the side of the virtual port channel interface is side B. Choices:
|
|
The UUID of the virtual port channel. This parameter or |
Notes
Note
The
templatemust exist before using this module in your playbook. Use cisco.mso.ndo_template to create the L3Out template.The
l3outmust exist before using this module in your playbook. Use cisco.mso.ndo_l3out_template to create the L3Out.The parent object defined by
parent_typemust exist before using this module in your playbook. Use cisco.mso.ndo_l3out_routed_interface to create the L3Out Routed Interface. Use cisco.mso.ndo_l3out_routed_sub_interface to create the L3Out Routed Sub-Interface. Use cisco.mso.ndo_l3out_svi_interface to create the L3Out SVI Interface. Use cisco.mso.ndo_l3out_floating_svi_interface to create the L3Out Floating SVI Interface. Use cisco.mso.ndo_l3out_floating_svi_interface_path_attributes to create the L3Out Floating SVI Interface Path Attributes.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_l3out_template
Manage L3Outs on Cisco Nexus Dashboard Orchestrator (NDO).
- cisco.mso.ndo_l3out_routed_interface
Manage L3Out Routed Interfaces on Cisco Nexus Dashboard Orchestrator (NDO).
- cisco.mso.ndo_l3out_routed_sub_interface
Manage L3Out Routed Sub-Interfaces on Cisco Nexus Dashboard Orchestrator (NDO).
- cisco.mso.ndo_l3out_svi_interface
Manage L3Out SVI Interfaces on Cisco Nexus Dashboard Orchestrator (NDO).
- cisco.mso.ndo_l3out_floating_svi_interface
Manage L3Out Floating SVI Interfaces on Cisco Nexus Dashboard Orchestrator (NDO).
- cisco.mso.ndo_l3out_floating_svi_interface_path_attributes
Manage L3Out Floating SVI Interface Path Attributes on Cisco Nexus Dashboard Orchestrator (NDO).
Examples
- name: Create a secondary address on a L3out Routed Interface of type port
cisco.mso.ndo_l3out_secondary_ip:
host: mso_host
username: admin
password: SomeSecretPassword
template: l3out_template
l3out: l3out_1
node_id: 101
path: eth1/3
parent_type: routed
secondary_address: 3::102/16
state: present
- name: Create a secondary address on a L3out Routed Interface of type port channel
cisco.mso.ndo_l3out_secondary_ip:
host: mso_host
username: admin
password: SomeSecretPassword
template: l3out_template
l3out: l3out_1
port_channel:
uuid: '{{ port_channel_interface_3.current.uuid }}'
parent_type: routed
secondary_address: 10.2.0.2/24
state: present
- name: Create a secondary address on a L3out SVI Interface of type port
cisco.mso.ndo_l3out_secondary_ip:
host: mso_host
username: admin
password: SomeSecretPassword
template: l3out_template
l3out: l3out_1
node_id: 101
path: eth1/1
encapsulation_type: vlan
encapsulation_value: 103
parent_type: svi
secondary_address: 10.0.0.2/24
state: present
- name: Create a secondary address on a L3out SVI Interface of type port channel
cisco.mso.ndo_l3out_secondary_ip:
host: mso_host
username: admin
password: SomeSecretPassword
template: l3out_template
l3out: l3out_1
port_channel:
uuid: '{{ port_channel_interface_1.current.uuid }}'
encapsulation_type: vxlan
encapsulation_value: 50001
parent_type: svi
secondary_address: 1::102/16
state: present
- name: Create a secondary address on a L3out SVI Interface of type virtual port channel side a
cisco.mso.ndo_l3out_secondary_ip:
host: mso_host
username: admin
password: SomeSecretPassword
template: l3out_template
l3out: l3out_1
virtual_port_channel:
uuid: '{{ virtual_port_channel_interface_1.current.uuid }}'
encapsulation_type: vlan
encapsulation_value: 1000
parent_type: svi
secondary_address: 10.0.2.3/24
state: present
- name: Create a secondary address on a L3out SVI Interface of type virtual port channel side b
cisco.mso.ndo_l3out_secondary_ip:
host: mso_host
username: admin
password: SomeSecretPassword
template: l3out_template
l3out: l3out_1
virtual_port_channel:
uuid: '{{ virtual_port_channel_interface_1.current.uuid }}'
side_b: true
encapsulation_type: vlan
encapsulation_value: 1000
parent_type: svi
secondary_address: 10.0.2.4/24
state: present
- name: Create a secondary address on a L3out Routed Sub-Interface of type port
cisco.mso.ndo_l3out_secondary_ip:
host: mso_host
username: admin
password: SomeSecretPassword
template: l3out_template
l3out: l3out_1
node_id: 101
path: eth1/2
encapsulation_type: vlan
encapsulation_value: 101
parent_type: routed_sub
secondary_address: 10.1.0.2/24
state: present
- name: Create a secondary address on a L3out Routed Sub-Interface of type port channel
cisco.mso.ndo_l3out_secondary_ip:
host: mso_host
username: admin
password: SomeSecretPassword
template: l3out_template
l3out: l3out_1
port_channel:
uuid: '{{ port_channel_interface_2.current.uuid }}'
encapsulation_type: vlan
encapsulation_value: 101
parent_type: routed_sub
secondary_address: 2::102/16
state: present
- name: Create a secondary address on a L3Out Floating SVI Interface
cisco.mso.ndo_l3out_secondary_ip:
host: mso_host
username: admin
password: SomeSecretPassword
template: l3out_template
l3out: l3out_1
node_id: 101
encapsulation_type: vlan
encapsulation_value: 100
parent_type: floating_svi
secondary_address: 10.4.0.3/24
state: present
- name: Create a secondary address on a L3Out Floating SVI Interface path attributes
cisco.mso.ndo_l3out_secondary_ip:
host: mso_host
username: admin
password: SomeSecretPassword
template: l3out_template
l3out: l3out_1
node_id: 101
encapsulation_type: vlan
encapsulation_value: 100
domain_type: vmm
domain_provider: vmware
domain: ansible_test_vmm
parent_type: floating_svi_path_attributes
secondary_address: 10.4.0.4/24
state: present
- name: Update a secondary address on a L3out Routed Interface of type port
cisco.mso.ndo_l3out_secondary_ip:
host: mso_host
username: admin
password: SomeSecretPassword
template: l3out_template
l3out: l3out_1
node_id: 101
path: eth1/3
parent_type: routed
secondary_address: 3::102/16
dhcp_relay: true
ipv6_dad: disabled
nd_ra_prefix: true
- name: Get a secondary address on a L3out Routed Interface of type port
cisco.mso.ndo_l3out_secondary_ip:
host: mso_host
username: admin
password: SomeSecretPassword
template: l3out_template
l3out: l3out_1
node_id: 101
path: eth1/3
parent_type: routed
secondary_address: 3::102/16
state: query
register: query_secondary_address
- name: Get all secondary addresses on a L3out Routed Interface of type port
cisco.mso.ndo_l3out_secondary_ip:
host: mso_host
username: admin
password: SomeSecretPassword
template: l3out_template
l3out: l3out_1
node_id: 101
path: eth1/3
parent_type: routed
state: query
register: query_all
- name: Delete a secondary address on a L3out Routed Interface of type port
cisco.mso.ndo_l3out_secondary_ip:
host: mso_host
username: admin
password: SomeSecretPassword
template: l3out_template
l3out: l3out_1
node_id: 101
path: eth1/3
parent_type: routed
secondary_address: 3::102/16
state: absent