cisco.mso.ndo_l3out_routed_sub_interface module – Manage L3Out Routed Sub-Interfaces 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_routed_sub_interface.
New in cisco.mso 2.11.0
Synopsis
- Manage L3Out Routed Sub-Interfaces 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 |
|---|---|
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 |
interface_group_policy string | The name of the interface group policy. |
ipv4_address string | The IPv4 address of the interface. |
ipv6_address string | The IPv6 address of the interface. |
ipv6_dad string | Whether to enable IPv6 Duplicate Address Detection (DAD). If this parameter is unspecified during create, NDO defaults to Choices:
|
ipv6_link_local_address string | The IPv6 link-local address of the interface. |
l3out aliases: l3out_name 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 |
mac string | The MAC address of the interface. |
mtu string | The Maximum Transmission Unit (MTU) of the interface. Use The value must be 1, or in the range 576 - 9216 or |
node_group_policy string | The name of the node group policy. |
node_id aliases: node, border_leaf string | The ID of the node (border leaf switch) where to deploy the L3Out routing protocol and node-level protocol configurations. This parameter is required when When specified, the node configuration is created under the L3Out template when it does not exist. When specified, the node configuration is updated under the L3Out template when it already exists. When specified, the node configuration is deleted under the L3Out template when there are no interfaces referencing it. |
node_loopback_ip aliases: loopback_ip string | The loopback IP address of the node. |
node_router_id aliases: router_id string | The router ID of the node. |
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:
|
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 |
ptp dictionary | The Precision Time Protocol (PTP) configuration for the interface. Providing an empty dictionary |
|
mode string |
The PTP mode. If this parameter is unspecified, NDO defaults to Choices:
|
|
source_address string |
The PTP source address. If this parameter is unspecified, NDO defaults to |
|
unicast_destinations list / elements=string |
The PTP unicast destination IP addresses. The old The PTP unicast destinations IP addresses can only be configured if |
|
user_profile dictionary |
The PTP user profile. |
|
reference aliases: ref dictionary |
The reference details of the PTP user profile. |
|
name string / required |
The name of the PTP user profile. |
|
template string |
The name of the template that contains the PTP user profile. This parameter or |
|
template_id string |
The ID of the template that contains the PTP user profile. This parameter or |
|
uuid string |
The UUID of the PTP user profile. |
state string | Determines the desired state of the resource. Use Use Use Choices:
|
target_dscp string | The target Differentiated Services Code Point (DSCP) of the interface. If this parameter is unspecified during create, NDO defaults to Choices:
|
template aliases: l3out_template string | The name of the template. The template must be an 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_router_id_as_loopback boolean | Whether to use the router ID as the loopback address of the node. 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:
|
Notes
Note
- The
templateortemplate_idmust exist before using this module in your playbook. The cisco.mso.ndo_template module can be used for this. - The
l3outorl3out_uuidmust exist before using this module in your playbook. The cisco.mso.ndo_l3out_template module can be used for this. - The
node_group_policymust exist before using this module in your playbook. The cisco.mso.ndo_l3out_node_group_policy module can be used for this. - The
interface_group_policymust exist before using this module in your playbook. The cisco.mso.ndo_l3out_interface_group_policy module can be used for this. - The
port_channelmust exist before using this module in your playbook. The cisco.mso.ndo_port_channel_interface module can be used for this. - The
ptp.user_profilemust exist before using this module in your playbook. The cisco.mso.ndo_ptp_policy_profiles module can be used for this. - 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_node_group_policy
-
Manage L3Out Node Group Policy on Cisco Nexus Dashboard Orchestrator (NDO).
- cisco.mso.ndo_l3out_interface_group_policy
-
Manage L3Out Interface Group Policy on Cisco Nexus Dashboard Orchestrator (NDO).
- cisco.mso.ndo_port_channel_interface
-
Manage Port Channel Interfaces on Cisco Nexus Dashboard Orchestrator (NDO).
- cisco.mso.ndo_ptp_policy_profiles
-
Manage PTP Policy Profiles on Cisco Nexus Dashboard Orchestrator (NDO).
Examples
- name: Create a L3Out Routed Sub-Interface of type port
cisco.mso.ndo_l3out_routed_sub_interface:
host: mso_host
username: admin
password: SomeSecretPassword
template: l3out_template
l3out: l3out_name
ipv4_address: 10.0.0.1/24
ipv6_address: 2::101/16
ipv6_link_local_address: FE80::10
ipv6_dad: enabled
mac: 00:22:BD:F8:19:FF
mtu: inherit
node_id: 101
path: eth1/1
encapsulation_type: vlan
encapsulation_value: 100
interface_group_policy: interface_group_policy_name
node_router_id: 1.1.1.1
node_group_policy: node_group_policy_name
use_router_id_as_loopback: true
ptp:
user_profile:
uuid: '{{ ptp_profile.current.uuid }}'
state: present
- name: Create a L3Out Routed Sub-Interface of type port_channel with reference
cisco.mso.ndo_l3out_routed_sub_interface:
host: mso_host
username: admin
password: SomeSecretPassword
template: l3out_template
l3out: l3out_name
ipv4_address: 10.1.0.1/24
ipv6_address: 1::112/16
ipv6_link_local_address: FE80::20
ipv6_dad: disabled
mac: 00:22:BD:F8:19:EE
mtu: 2000
port_channel:
reference:
name: port_channel_interface_name
template: fabric_resource_template_name
encapsulation_type: vlan
encapsulation_value: 100
interface_group_policy: interface_group_policy_name
node_router_id: 2.2.2.2
node_group_policy: node_group_policy_name
use_router_id_as_loopback: false
node_loopback_ip: 10.0.0.1
ptp:
mode: unicast_master
user_profile:
reference:
name: ptp_profile_name
template: fabric_policy_template_name
source_address: 12.0.0.1
unicast_destinations:
- 12.0.0.2
- 12.0.0.3
state: present
- name: Update a L3Out Routed Sub-Interface of type port_channel with uuid
cisco.mso.ndo_l3out_routed_sub_interface:
host: mso_host
username: admin
password: SomeSecretPassword
template_id: "{{ l3out_template.current.templateId }}"
l3out_uuid: "{{ l3out.current.uuid }}"
ipv4_address: 10.1.0.1/24
ipv6_address: 1::112/16
ipv6_link_local_address: FE80::20
ipv6_dad: disabled
mac: 00:22:BD:F8:19:EE
mtu: 2000
port_channel:
uuid: "{{ port_channel_interface.current.uuid }}"
encapsulation_type: vlan
encapsulation_value: 100
interface_group_policy: interface_group_policy_name
node_router_id: 2.2.2.2
node_group_policy: node_group_policy_name
use_router_id_as_loopback: false
node_loopback_ip: 10.0.0.1
state: present
- name: Remove PTP configuration from a L3Out Routed Sub-Interface of type port
cisco.mso.ndo_l3out_routed_sub_interface:
host: mso_host
username: admin
password: SomeSecretPassword
template: l3out_template
l3out: l3out_name
node_id: 101
path: eth1/1
encapsulation_type: vlan
encapsulation_value: 100
ptp: {}
state: present
- name: Query an existing L3Out Routed Sub-Interface of type port
cisco.mso.ndo_l3out_routed_sub_interface:
host: mso_host
username: admin
password: SomeSecretPassword
template: l3out_template
l3out: l3out_name
node_id: 101
path: eth1/1
encapsulation_type: vlan
encapsulation_value: 100
state: query
register: query_with_name
- name: Query an existing L3Out Routed Sub-Interface of type port_channel
cisco.mso.ndo_l3out_routed_sub_interface:
host: mso_host
username: admin
password: SomeSecretPassword
template: l3out_template
l3out: l3out_name
port_channel:
reference:
name: port_channel_interface_name
template: fabric_resource_template_name
encapsulation_type: vlan
encapsulation_value: 100
state: query
register: query_with_name
- name: Query all existing Routed Sub-Interfaces of a L3Out
cisco.mso.ndo_l3out_routed_sub_interface:
host: mso_host
username: admin
password: SomeSecretPassword
template: l3out_template
l3out: l3out_name
state: query
- name: Delete an existing L3Out Routed Sub-Interface
cisco.mso.ndo_l3out_routed_sub_interface:
host: mso_host
username: admin
password: SomeSecretPassword
template: l3out_template
l3out: l3out_name
node_id: 101
path: eth1/1
encapsulation_type: vlan
encapsulation_value: 100
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_routed_sub_interface_module.html