cisco.mso.ndo_l3out_routed_interface module – Manage L3Out Routed Interfaces 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_routed_interface.
New in cisco.mso 2.11.0
Synopsis
Manage L3Out Routed 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 |
|---|---|
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 interface group policy. |
|
The IPv4 address of the interface. |
|
The IPv6 address of the interface. |
|
Whether to enable IPv6 Duplicate Address Detection (DAD). If this parameter is unspecified, NDO defaults to Choices:
|
|
The IPv6 link-local address of the interface. |
|
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 |
|
The MAC address of the interface. |
|
The Maximum Transmission Unit (MTU) of the interface. Use The value must be 1, in the range 576 - 9216 or |
|
The name of the node group policy. |
|
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 This parameter is required when the node configuration does not exist under the L3Out template. 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. |
|
The loopback IP address of the node. |
|
The router ID of the node. This parameter is required when the node configuration does not exist under the L3Out template. |
|
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 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 address for micro BFD. |
|
Whether to enable micro BFD (Bidirectional Forwarding Detection) on the interface. Choices:
|
|
The start timer for micro BFD. The value must be 0 or in the range 60 - 3600. |
|
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 Precision Time Protocol (PTP) configuration for the interface. Providing an empty dictionary |
|
The PTP mode. If this parameter is unspecified, NDO defaults to Choices:
|
|
The PTP source address. If this parameter is unspecified, NDO defaults to |
|
The PTP unicast destination IP addresses. The old The PTP unicast destinations IP addresses can only be configured if |
|
The PTP user profile. |
|
The reference details of the PTP user profile. |
|
The name of the PTP user profile. |
|
The name of the template that contains the PTP user profile. This parameter or |
|
The ID of the template that contains the PTP user profile. This parameter or |
|
The UUID of the PTP user profile. |
|
Determines the desired state of the resource. Use Use Use Choices:
|
|
The target Differentiated Services Code Point (DSCP) of the interface. If this parameter is unspecified, NDO defaults to Choices:
|
|
The name of the template. The template must be an 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:
|
|
Whether to use the router ID as the loopback address of the node. 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
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 Interface of type port with L3Out Node configuration
cisco.mso.ndo_l3out_routed_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
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 Interface of type port_channel with reference and L3Out Node configuration
cisco.mso.ndo_l3out_routed_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:
micro_bfd_enabled: true
micro_bfd_address: 1::110
micro_bfd_start_timer: 60
reference:
name: port_channel_interface_name
template: fabric_resource_template_name
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 Interface of type port_channel with uuid and L3Out Node configuration
cisco.mso.ndo_l3out_routed_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:
micro_bfd_enabled: true
micro_bfd_address: 1::110
micro_bfd_start_timer: 60
uuid: "{{ port_channel_interface.current.uuid }}"
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 Interface of type port
cisco.mso.ndo_l3out_routed_interface:
host: mso_host
username: admin
password: SomeSecretPassword
template: l3out_template
l3out: l3out_name
node_id: 101
path: eth1/1
ptp: {}
state: present
- name: Query an existing L3Out Routed Interface of type port with L3Out Node configuration
cisco.mso.ndo_l3out_routed_interface:
host: mso_host
username: admin
password: SomeSecretPassword
template: l3out_template
l3out: l3out_name
node_id: 101
path: eth1/1
state: query
register: query_with_name
- name: Query an existing L3Out Routed Interface of type port_channel with L3Out Node configuration
cisco.mso.ndo_l3out_routed_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
state: query
register: query_with_name
- name: Query all existing Routed Interfaces of a L3Out with L3Out Node configuration
cisco.mso.ndo_l3out_routed_interface:
host: mso_host
username: admin
password: SomeSecretPassword
template: l3out_template
l3out: l3out_name
state: query
- name: Delete an existing L3Out Routed Interface
cisco.mso.ndo_l3out_routed_interface:
host: mso_host
username: admin
password: SomeSecretPassword
template: l3out_template
l3out: l3out_name
node_id: 101
path: eth1/1
state: absent