cisco.mso.ndo_interface_setting module – Manage Interface Policy Groups on Cisco Nexus Dashboard Orchestrator (NDO).
Note
This module is part of the cisco.mso collection (version 2.10.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_interface_setting
.
Synopsis
Manage Interface Policy Groups 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 |
---|---|
The access MACsec policy. The value is available only when the mcp_admin_state is The MACsec policy must be defined in the same fabric policy template. |
|
The auto negotiation state of the port(s) in the interface policy group. The default value is Choices:
|
|
The CDP admin state enables Cisco Discovery Protocol (CDP) on the interface. The default value is Choices:
|
|
The port-channel control flags of the interface policy group. The default value is The value is available only when the interface_type is Providing an empty list will remove the The old Choices:
|
|
The description of the interface policy group. |
|
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 type of the interface policy group. This parameter is required when interface policy group needs to be created or updated. Choices:
|
|
The QinQ state for the port(s) in the interface policy group to define how to map double-tagged VLAN traffic. The default value is Choices:
|
|
Enables or disables reflective relay (802.1Qbg) to forward traffic back to the destination or target. The term Virtual Ethernet Port Aggregator (VEPA) is also used to describe 802.1Qbg functionality. The default value is Choices:
|
|
The time in milliseconds that the decision feedback equalizer (DFE) tuning is delayed when a port is coming up. The default value is 0. The value must be an integer between 0 and 10000. |
|
The debounce interval of the link level in milliseconds. The default value is 100. The value must be an integer between 0 and 5000. |
|
The type of Forwarding Error Correction (FEC) used by the port(s) in the interface policy group. The default value is Choices:
|
|
The Link Layer Discovery Protocol (LLDP) configuration of the interface policy group. |
|
The receive state allows LLDP packets to be received by the interface. The default value is Choices:
|
|
The state of LLDP on the interface. The default value is Choices:
|
|
The transmit state allows LLDP packets to be sent from the interface. The default value is Choices:
|
|
The LLFC receive state allows LLFC packets to be received by the interface. The default value is Choices:
|
|
The LLFC transmit state allows Link Level Flow Control (LLFC) packets to be sent from the interface. The default value is Choices:
|
|
The IP header information used by the port-channel load balance hashing algorithm of the interface policy group. The value is available only when the interface_type is Choices:
|
|
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 maximum number of links in a port-channel of the interface policy group. The default value is 16. The value must be between 1 and 64. The value is available only when the interface_type is |
|
The MisCabling Protocol (MCP) settings. |
|
The MCP admin state enables MisCabling Protocol (MCP) on the interface. The default value is Choices:
|
|
The MCP grace period in milliseconds. The default value is 0. The value must be between 0 and 999. The value is available only when the MCP strict_mode is |
|
The MCP grace period in seconds. The default value is 3. The value must be between 0 and 300. The value is available only when the MCP strict_mode is |
|
The MCP initial delay time in seconds. The default value is 180. The value must be between 0 and 1800. The value is available only when the MCP strict_mode is |
|
The MCP strict mode. The value is available only when the MCP admin_state is The default value is Choices:
|
|
The MCP transmission frequency in milliseconds. The default value is 0. The value must be between 0 and 999. The value is available only when the MCP strict_mode is |
|
The MCP transmission frequency in seconds. The default value is 2. The value must be between 0 and 300. The value is available only when the MCP strict_mode is |
|
The minimum number of active links in a port-channel of the interface policy group. The default value is 1. The value must be between 1 and 16. The value is available only when the interface_type is |
|
The name of the interface policy group. |
|
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 Priority Flow Control (PFC) admin state. The default value is Choices:
|
|
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 mode of the interface policy group. The default value is The value is available only when the interface_type is Choices:
|
|
The port speed for the port(s) associated with the interface policy group. The default value is Choices:
|
|
Use Use Use Choices:
|
|
Enabling the Bridge Protocol Data Unit (BPDU) filter prevents any BPDUs on the port(s) in the interface policy group by filtering the BPDUs. Disabling the BPDU filter allows BPDUs to be received on the port. The default value is Choices:
|
|
Enabling the STP BPDU guard shutdown the port(s) by placing them in ‘error-disable’ mode when BPDUs are received. Disabling the STP BPDU guard allows BPDUs to be received on the port. The default value is Choices:
|
|
The syncE policy assigned to the interface policy group. The syncE policy must be defined in the same fabric policy template. |
|
The name of the template. The template must be a fabric policy template. |
|
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 |
|
The UUID of the interface policy group. This parameter is required when the |
|
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 scope of the VLAN encapsulation of the port(s) in the interface policy group. The default value is Choices:
|
Notes
Note
The
template
must exist before using this module in your playbook. Use cisco.mso.ndo_template to create the Tenant template.The
access_macsec_policy
must exist before using this module in your playbook. Use cisco.mso.ndo_macsec_policy to create the MACsec policy.The
domains
must exist before using this module in your playbook. Use cisco.mso.ndo_physical_domain or cisco.mso.ndo_l3_domain to create the domain.The
synce
must exist before using this module in your playbook. Use cisco.mso.ndo_synce_interface_policy to create the syncE policy.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_macsec_policy
Manage MACsec Policies on Cisco Nexus Dashboard Orchestrator (NDO).
Examples
- name: Create an Interface policy group of interface_type physical
cisco.mso.ndo_interface_setting:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_test_template
name: ansible_test_interface_policy_group_physical
description: "Interface Policy Group for Ansible Test"
interface_type: physical
state: present
- name: Create an Interface policy group of interface_type port_channel
cisco.mso.ndo_interface_setting:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_test_template
name: ansible_test_interface_policy_group_port_channel
description: "Interface Policy Group for Ansible Test"
interface_type: port_channel
state: present
- name: Create an Interface policy group with all attributes
cisco.mso.ndo_interface_setting:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_test_template
name: ansible_test_interface_policy_group_all
description: "Interface Policy Group for Ansible Test"
interface_type: port_channel
speed: 1G
auto_negotiation: on_enforce
vlan_scope: port_local
cdp_admin_state: enabled
port_channel_mode: lacp_active
min_links: 1
max_links: 16
controls: ["fast_sel_hot_stdby", "graceful_conv", "susp_individual"]
load_balance_hashing: destination_ip
synce: ansible_test_sync_e
link_level_debounce_interval: 100
link_level_bring_up_delay: 0
link_level_fec: ieee_rs_fec
l2_interface_qinq: edge_port
l2_interface_reflective_relay: enabled
lldp:
status: enabled
transmit_state: enabled
receive_state: enabled
domains:
- ansible_test_domain1
- ansible_test_domain2
stp_bpdu_filter: enabled
stp_bpdu_guard: enabled
llfc_transmit_state: enabled
llfc_receive_state: enabled
mcp:
admin_state: enabled
strict_mode: 'on'
initial_delay_time: 180
transmission_frequency_sec: 2
transmission_frequency_msec: 10
grace_period_sec: 3
grace_period_msec: 10
pfc_admin_state: 'on'
state: present
- name: Query all Interface policy groups
cisco.mso.ndo_interface_setting:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_test_template
state: query
register: query_all
- name: Query a specific Interface policy group with name
cisco.mso.ndo_interface_setting:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_test_template
name: ansible_test_interface_policy_group_physical
state: query
register: query_one_name
- name: Query a specific Interface policy group with UUID
cisco.mso.ndo_interface_setting:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_test_template
uuid: "{{ query_one_name.current.uuid }}"
state: query
register: query_one_uuid
- name: Delete an Interface policy group with name
cisco.mso.ndo_interface_setting:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_test_template
name: ansible_test_interface_policy_group_physical
state: absent
- name: Delete an Interface policy group with UUID
cisco.mso.ndo_interface_setting:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_test_template
uuid: "{{ query_one_name.current.uuid }}"
state: absent