.. _cisco.iosxr.iosxr_l3_interfaces_module:
*******************************
cisco.iosxr.iosxr_l3_interfaces
*******************************
**Resource module to configure L3 interfaces.**
Version added: 1.0.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module provides declarative management of Layer-3 interface on Cisco IOS-XR devices.
Parameters
----------
.. raw:: html
| Parameter |
Choices/Defaults |
Comments |
|
config
list
/ elements=dictionary
|
|
A dictionary of Layer-3 interface options
|
|
carrier_delay
dictionary
|
|
Delay carrier transitions.
|
|
|
down
integer
|
|
Delay for carrier-down event in milliseconds.
|
|
|
up
integer
|
|
Delay for carrier-up event in milliseconds.
|
|
dampening
dictionary
|
|
Enable interface dampening to reduce the effects of interface flapping.
|
|
|
enabled
boolean
|
|
Enable or disable dampening.
|
|
|
half_life
integer
|
|
The time in minutes after which a penalty is halved if the interface stays up.
|
|
|
max_suppress_time
integer
|
|
The maximum time in minutes that an interface can be suppressed.
|
|
|
restart_penalty
integer
|
|
The penalty assigned to an interface when it flaps.
|
|
|
reuse_threshold
integer
|
|
The penalty value below which a suppressed interface is unsuppressed.
|
|
|
suppress_threshold
integer
|
|
The penalty value above which an interface is suppressed.
|
|
flow
dictionary
|
|
Configure NetFlow monitoring on the interface.
|
|
|
ipv4
dictionary
|
|
Configure NetFlow monitoring for IPv4 traffic.
|
|
|
|
direction
string
|
Choices:
- ingress
- egress
- bidirectional
|
Direction of the flow monitoring.
|
|
|
|
monitor
string
|
|
Name of the flow monitor to apply.
|
|
|
|
sampler
string
|
|
Name of the sampler to apply.
|
|
|
ipv6
dictionary
|
|
Configure NetFlow monitoring for IPv6 traffic.
|
|
|
|
direction
string
|
Choices:
- ingress
- egress
- bidirectional
|
Direction of the flow monitoring.
|
|
|
|
monitor
string
|
|
Name of the flow monitor to apply.
|
|
|
|
sampler
string
|
|
Name of the sampler to apply.
|
|
flow_control
string
|
Choices:
- ingress
- egress
- bidirectional
|
Configure flow control for the interface.
|
|
ipv4
list
/ elements=dictionary
|
|
IPv4 address to be set for the Layer-3 interface mentioned in name option.
The address format is <ipv4 address>/<mask>, the mask is number in range 0-32 eg. 192.168.0.1/24
|
|
|
address
string
|
|
Configures the IPv4 address for Interface.
|
|
|
secondary
boolean
|
|
Configures the IP address as a secondary address.
|
|
ipv6
list
/ elements=dictionary
|
|
IPv6 address to be set for the Layer-3 interface mentioned in name option.
The address format is <ipv6 address>/<mask>, the mask is number in range 0-128 eg. fd5d:12c9:2201:1::1/64
|
|
|
address
string
|
|
Configures the IPv6 address for Interface.
|
|
load_interval
integer
|
|
Specify the length of time for which data is used to compute load statistics.
|
|
name
string
/ required
|
|
Full name of the interface excluding any logical unit number, i.e. GigabitEthernet0/1.
|
|
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 ←
- replaced
- overridden
- deleted
- parsed
- rendered
- gathered
|
The state of the configuration after module completion
|