cisco.mso.ndo_l3out_svi_interface module – Manage L3Out SVI 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_svi_interface.
New in cisco.mso 2.12.0
Synopsis
- Manage L3Out SVI 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 |
|---|---|
auto_state string | Whether to enable auto state on the interface. Controls whether the SVI comes up or down based on the state of its associated Layer 2 ports. Choices:
|
encapsulation_mode aliases: encap_mode string | The encapsulation mode of the interface. Choices:
|
encapsulation_scope aliases: encap_scope string | The encapsulation scope of the interface. 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 |
interface_group_policy string | The name of the interface group policy. |
ipv4_address string | The IPv4 address of the interface. For |
ipv6_address string | The IPv6 address of the interface. For |
ipv6_dad string | Whether to enable IPv6 Duplicate Address Detection (DAD). If this parameter is unspecified, NDO defaults to For Choices:
|
ipv6_link_local_address string | The IPv6 link-local address of the interface. For |
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. For |
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 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. |
node_loopback_ip aliases: loopback_ip string | The loopback IP address of the node. For |
node_router_id aliases: router_id string | The router ID of the node. This parameter is required when the node configuration does not exist under the L3Out template. For |
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 |
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, 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. For 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_ipv4_address string |
The Side B IPv4 address of the interface. |
|
side_b_ipv6_address string |
The Side B IPv6 address of the interface. |
|
side_b_ipv6_dad string |
Whether to enable IPv6 Duplicate Address Detection (DAD) on the Side B interface. If this parameter is unspecified, NDO defaults to Choices:
|
|
side_b_ipv6_link_local_address string |
The Side B IPv6 link-local address of the interface. |
|
side_b_node_group_policy string |
The name of the Side B node group policy. |
|
side_b_node_loopback_ip aliases: loopback_ip string |
The loopback IP address of the Side B node. |
|
side_b_node_router_id aliases: router_id string |
The router ID of the Side B node. This parameter is required when the node configuration does not exist under the L3Out template. |
|
side_b_use_router_id_as_loopback boolean |
Whether to use the router ID as the loopback address of the Side B node. Choices:
|
|
uuid string |
The UUID of the virtual port channel. This parameter or |
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
virtual_port_channelmust exist before using this module in your playbook. The cisco.mso.ndo_virtual_port_channel_interface 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_virtual_port_channel_interface
-
Manage Virtual Port Channel Interfaces on Cisco Nexus Dashboard Orchestrator (NDO).
Examples
- name: Create a L3Out SVI Interface of type port with L3Out Node configuration
cisco.mso.ndo_l3out_svi_interface:
host: mso_host
username: admin
password: SomeSecretPassword
template: l3out_template
l3out: l3out_name
node_id: 101
node_router_id: 1.1.1.1
path: eth1/1
ipv4_address: 10.0.0.2/24
ipv6_address: 2::101/16
ipv6_link_local_address: FE80::10
ipv6_dad: disabled
encapsulation_type: vxlan
encapsulation_value: 5100
mac: 00:22:BD:F8:19:FE
mtu: 1000
interface_group_policy: interface_group_policy_1
node_group_policy: node_group_policy_1
target_dscp: af11
encapsulation_scope: vrf
encapsulation_mode: trunk
auto_state: enabled
state: present
- name: Create a L3Out SVI Interface of type port_channel with uuid and L3Out Node configuration
cisco.mso.ndo_l3out_svi_interface:
host: mso_host
username: admin
password: SomeSecretPassword
template: l3out_template
l3out: l3out_name
node_router_id: 1.1.1.1
port_channel:
uuid: '{{ port_channel_interface_1.current.uuid }}'
encapsulation_type: vlan
encapsulation_value: 1200
ipv4_address: 10.0.1.1/24
ipv6_address: 1::102/16
ipv6_dad: disabled
ipv6_link_local_address: FE80::12
mac: 00:22:BD:F8:19:CC
mtu: 1800
interface_group_policy: interface_group_policy_1
node_group_policy: node_group_policy_1
target_dscp: af41
encapsulation_scope: local
encapsulation_mode: access
auto_state: enabled
state: present
- name: Create a L3Out SVI Interface of type virtual_port_channel with reference and L3Out Node configuration
cisco.mso.ndo_l3out_svi_interface:
host: mso_host
username: admin
password: SomeSecretPassword
template: l3out_template
l3out: l3out_name
node_router_id: 1.1.1.1
encapsulation_type: vxlan
encapsulation_value: 51000
ipv4_address: 10.0.2.4/24
ipv6_address: 10::105/16
ipv6_dad: disabled
ipv6_link_local_address: FE80::14
mac: 00:22:BD:F8:19:AD
mtu: 9216
virtual_port_channel:
reference:
name: ansible_virtual_port_channel_interface_1
template: ansible_fabric_resource_template_template_1
side_b_ipv4_address: 10.0.2.5/24
side_b_ipv6_address: 10::106/16
side_b_ipv6_link_local_address: FE80::15
side_b_ipv6_dad: disabled
side_b_node_router_id: 2.2.2.2
side_b_node_group_policy: node_group_policy_1
interface_group_policy: interface_group_policy_1
node_group_policy: node_group_policy_1
target_dscp: cs5
encapsulation_scope: vrf
encapsulation_mode: trunk_native
auto_state: enabled
state: present
- name: Update a L3Out SVI Interface of type port_channel with reference and L3Out Node configurations
cisco.mso.ndo_l3out_svi_interface:
host: mso_host
username: admin
password: SomeSecretPassword
template_id: "{{ l3out_template.current.templateId }}"
l3out_uuid: "{{ l3out.current.uuid }}"
node_router_id: 1.1.1.1
port_channel:
reference:
name: ansible_port_channel_interface_1
template_id: '{{ port_channel_interface_1.current.templateId }}'
encapsulation_type: vlan
encapsulation_value: 1200
ipv4_address: 10.0.1.1/24
ipv6_address: 1::102/16
ipv6_dad: disabled
ipv6_link_local_address: FE80::12
mac: 00:22:BD:F8:19:CC
mtu: 1800
interface_group_policy: interface_group_policy_1
target_dscp: af41
encapsulation_scope: local
encapsulation_mode: access
auto_state: enabled
state: present
- name: Query an existing L3Out SVI Interface of type port with L3Out Node configuration
cisco.mso.ndo_l3out_svi_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 SVI Interface of type port_channel with L3Out Node configuration
cisco.mso.ndo_l3out_svi_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 an existing L3Out SVI Interface of type virtual port_channel with L3Out Node configurations
cisco.mso.ndo_l3out_svi_interface:
host: mso_host
username: admin
password: SomeSecretPassword
template: l3out_template
l3out: l3out_name
virtual_port_channel:
uuid: '{{ virtual_port_channel_interface_1.current.uuid }}'
state: query
register: query_with_name
- name: Query all existing Routed Interfaces of a L3Out with L3Out Node configuration
cisco.mso.ndo_l3out_svi_interface:
host: mso_host
username: admin
password: SomeSecretPassword
template: l3out_template
l3out: l3out_name
state: query
- name: Delete an existing L3Out SVI Interface of type port
cisco.mso.ndo_l3out_svi_interface:
host: mso_host
username: admin
password: SomeSecretPassword
template: l3out_template
l3out: l3out_name
node_id: 101
path: eth1/1
state: absent
- name: Delete an existing L3Out SVI Interface of type port_channel
cisco.mso.ndo_l3out_svi_interface:
host: mso_host
username: admin
password: SomeSecretPassword
template: l3out_template
l3out: l3out_name
port_channel:
uuid: '{{ port_channel_interface_1.current.uuid }}'
state: absent
- name: Delete an existing L3Out SVI Interface of type virtual_port_channel
cisco.mso.ndo_l3out_svi_interface:
host: mso_host
username: admin
password: SomeSecretPassword
template: l3out_template
l3out: l3out_name
virtual_port_channel:
reference:
name: ansible_virtual_port_channel_interface_1
template: ansible_fabric_resource_template_template_1
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_svi_interface_module.html