.. _cisco.nxos.nxos_interfaces_module:
**************************
cisco.nxos.nxos_interfaces
**************************
**Interfaces resource module**
Version added: 1.0.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module manages the interface attributes of NX-OS interfaces.
Parameters
----------
.. raw:: html
| Parameter |
Choices/Defaults |
Comments |
|
config
list
/ elements=dictionary
|
|
A dictionary of interface options
|
|
description
string
|
|
Interface description.
|
|
duplex
string
|
|
Interface link status. Applicable for Ethernet interfaces only.
|
|
enabled
boolean
|
|
Administrative state of the interface. Set the value to true to administratively enable the interface or false to disable it
|
|
fabric_forwarding_anycast_gateway
boolean
|
|
Associate SVI with anycast gateway under VLAN configuration mode. Applicable for SVI interfaces only.
|
|
ip_forward
boolean
|
|
Enable or disable IP forward feature on SVIs. Set the value to true to enable or false to disable.
|
|
mode
string
|
|
Manage Layer2 or Layer3 state of the interface. Applicable for Ethernet and port channel interfaces only.
|
|
mtu
string
|
|
MTU for a specific interface. Must be an even number between 576 and 9216. Applicable for Ethernet interfaces only.
|
|
name
string
/ required
|
|
Full name of interface, e.g. Ethernet1/1, port-channel10.
|
|
speed
string
|
|
Interface link speed. Applicable for Ethernet interfaces only.
|
|
running_config
string
|
|
This option is used only with state parsed.
The value of this option should be the output received from the NX-OS device by executing the command show running-config | section ^interface
The state parsed reads the configuration from running_config option and transforms it into Ansible structured data as per the resource module's argspec and the value is then returned in the parsed key within the result.
|
|
state
string
|
Choices:
merged ←
- replaced
- overridden
- deleted
- gathered
- rendered
- parsed
- purged
|
The state of the configuration after module completion
The state rendered considers the system default mode for interfaces to be "Layer 3" and the system default state for interfaces to be shutdown.
The state purged negates virtual interfaces that are specified in task from running-config.
|