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.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_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 |
|---|---|
dhcp_relay boolean | Whether to enable Dynamic Host Configuration Protocol (DHCP) relay. If this parameter is unspecified, NDO defaults to Choices:
|
domain aliases: domain_name string | The name of the domain. |
domain_provider string | The provider of the domain. Choices:
|
domain_type string | The type of the domain. Choices:
|
encapsulation_type aliases: encap_type string | The encapsulation type of the interface. Choices:
|
encapsulation_value aliases: encap, encapsulation, encapsulation_id integer | The encapsulation value of the interface. The option The option |
host aliases: hostname string | 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 |
ipv6_dad string | 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:
|
l3out string | The name of the L3Out. This parameter or |
l3out_uuid string | The UUID of the L3Out. This parameter or |
login_domain string | 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 |
nd_ra_prefix boolean | Whether to enable Neighbor Discovery (ND) Router Advertisement (RA). If this parameter is unspecified, NDO defaults to Choices:
|
node_id aliases: node, border_leaf, anchor_node string | The ID of the node (border leaf switch). |
output_level string | Influence the output of this MSO module.
If the value is not specified in the task, the value of environment variable Choices:
|
parent_type string / required | The parent type of the L3Out. Choices:
|
password string | The password to use for authentication. If the value is not specified in the task, the value of environment variables |
path aliases: interface string | The path of the interface. The path must be an existing physical port (eg. eth1/1). |
port integer | 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 |
port_channel aliases: pc dictionary | The port channel details. |
|
reference aliases: ref dictionary |
The reference details of the port channel. This parameter or |
|
name string / required |
The name of the port channel. |
|
template string |
The name of the template that contains the port channel. This parameter or |
|
template_id string |
The ID of the template that contains the port channel. This parameter or |
|
uuid string |
The UUID of the port channel. This parameter or |
secondary_address aliases: ipv4, ipv6, ip string | The secondary IP address. |
state string | Use Use Use Choices:
|
template aliases: l3out_template string | The name of the L3Out template. This parameter or |
template_id aliases: l3out_template_id string | The ID of the L3Out template. This parameter or |
timeout integer | 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 |
use_proxy boolean | If If the value is not specified in the task, the value of environment variable The default is Choices:
|
use_ssl boolean | 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:
|
username string | The username to use for authentication. If the value is not specified in the task, the value of environment variables |
validate_certs boolean | If This should only set to If the value is not specified in the task, the value of environment variable The default is Choices:
|
virtual_port_channel aliases: vpc dictionary | The virtual port channel details. |
|
reference aliases: ref dictionary |
The reference details of the virtual port channel. This parameter or |
|
name string / required |
The name of the virtual port channel. |
|
template string |
The name of the template that contains the virtual port channel. This parameter or |
|
template_id string |
The ID of the template that contains the virtual port channel. This parameter or |
|
side_b boolean |
Whether the side of the virtual port channel interface is side B. Choices:
|
|
uuid string |
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
Collection links
© 2012–2018 Michael DeHaan
© 2018–2025 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/projects/ansible/latest/collections/cisco/mso/ndo_l3out_secondary_ip_module.html