.. _cisco.iosxr.iosxr_interfaces_module:
****************************
cisco.iosxr.iosxr_interfaces
****************************
**Interfaces resource module**
Version added: 1.0.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module manages the interface attributes on Cisco IOS-XR network devices.
Parameters
----------
.. raw:: html
Parameter |
Choices/Defaults |
Comments |
config
list
/ elements=dictionary
|
|
A dictionary of interface options
|
|
description
string
|
|
Interface description.
|
|
duplex
string
|
|
Configures the interface duplex mode. Default is auto-negotiation when not configured.
|
|
enabled
boolean
|
|
Administrative state of the interface.
Set the value to True to administratively enable the interface or False to disable it.
|
|
mtu
integer
|
|
Sets the MTU value for the interface. Applicable for Ethernet interfaces only.
Refer to vendor documentation for valid values.
|
|
name
string
/ required
|
|
Full name of the interface to configure in type + path format. e.g. GigabitEthernet0/0/0/0
|
|
speed
integer
|
|
Configure the speed for an interface. Default is auto-negotiation when not configured.
|
running_config
string
|
|
This option is used only with state parsed.
The value of this option should be the output received from the IOS-XR device by executing the command show running-config 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 ←
- parsed
- deleted
- replaced
- rendered
- gathered
- overridden
|
The state of the configuration after module completion
|