.. _cisco.nxos.nxos_l3_interfaces_module:
*****************************
cisco.nxos.nxos_l3_interfaces
*****************************
**L3 interfaces resource module**
Version added: 1.0.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module manages Layer-3 interfaces attributes of NX-OS Interfaces.
Parameters
----------
.. raw:: html
| Parameter |
Choices/Defaults |
Comments |
|
config
list
/ elements=dictionary
|
|
A dictionary of Layer-3 interface options
|
|
bandwidth
dictionary
|
|
Manually set the bandwidth
|
|
|
inherit
boolean
|
|
Specify that bandwidth is inherited
|
|
|
kilobits
integer
|
|
Bandwidth in kilobits
|
|
dhcp
dictionary
|
|
Configure DHCP snooping or relay
|
|
|
ipv4
dictionary
|
|
DHCP snooping for ipv4
|
|
|
|
option82
dictionary
|
|
DHCP option82.
|
|
|
|
|
suboption
dictionary
|
|
DHCP option82.
|
|
|
|
|
|
circuit_id
string
|
|
DHCP option82 suboption circuit-id string configuration.
|
|
|
|
relay
dictionary
|
|
Configure relay agent.
|
|
|
|
|
address
list
/ elements=dictionary
|
|
List of ipv4 relay addresses
|
|
|
|
|
|
relay_ip
string
|
|
IP address
|
|
|
|
|
|
vrf_name
string
|
|
Helper address VRF membership
|
|
|
|
|
information
dictionary
|
|
Relay agent information option.
|
|
|
|
|
|
trusted
boolean
|
|
Enable relay trust on this interface.
|
|
|
|
|
source_interface
dictionary
|
|
Configure gateway address for DHCP relay
|
|
|
|
|
|
interface_id
string
|
|
Interface ID
|
|
|
|
|
|
interface_type
string
|
|
Type of interface
|
|
|
|
|
subnet_selection
dictionary
|
|
Configure gateway address for DHCP relay
|
|
|
|
|
|
subnet_ip
string
|
|
IP address
|
|
|
|
smart_relay
boolean
|
|
Configure DHCP smart relay on interface.
|
|
|
ipv6
dictionary
|
|
DHCP snooping for ipv6
|
|
|
|
relay
dictionary
|
|
Configure relay agent.
|
|
|
|
|
address
list
/ elements=dictionary
|
|
Configure DHCPv6 server relay address
|
|
|
|
|
|
interface_id
string
|
|
Interface ID
|
|
|
|
|
|
interface_type
string
|
|
Type of interface
|
|
|
|
|
|
relay_ip
string
|
|
IP address
|
|
|
|
|
|
vrf_name
string
|
|
Helper address VRF membership
|
|
|
|
|
source_interface
dictionary
|
|
Configure source interface for DHCPv6 relay.
|
|
|
|
|
|
interface_id
string
|
|
Interface ID
|
|
|
|
|
|
interface_type
string
|
|
Type of interface
|
|
|
|
smart_relay
boolean
|
|
Configure DHCP smart relay on interface.
|
|
dot1q
integer
|
|
Configures IEEE 802.1Q VLAN encapsulation on a subinterface.
|
|
evpn_multisite_tracking
string
added in 1.1.0
|
Choices:
- fabric-tracking
- dci-tracking
|
VxLAN evpn multisite Interface tracking. Supported only on selected model.
|
|
ipv4
list
/ elements=dictionary
|
|
IPv4 address and attributes of the L3 interface.
|
|
|
address
string
|
|
IPV4 address of the L3 interface.
|
|
|
ip_network_mask
string
|
|
IP prefix and network mask length in format x.x.x.x/m or IP network mask in format m.m.m.m
|
|
|
route_preference
integer
|
|
URIB route preference for local/direct routes
|
|
|
secondary
boolean
|
|
A boolean attribute to manage addition of secondary IP address.
|
|
|
tag
integer
|
|
URIB route tag value for local/direct routes.
|
|
ipv6
list
/ elements=dictionary
|
|
IPv6 address and attributes of the L3 interface.
|
|
|
address
string
|
|
IPV6 address of the L3 interface.
|
|
|
aggregate_prefix_length
integer
|
|
Prefix-Length for AM Route Aggregation
|
|
|
anycast
boolean
|
|
Configure IPv6 anycast address on interface
|
|
|
eui64
boolean
|
|
Configure Extended Unique Identifier for the low-order 64 bits
|
|
|
route_preference
integer
|
|
URIB route preference for local/direct routes
|
|
|
tag
integer
|
|
URIB route tag value for local/direct routes.
|
|
|
use_bia
boolean
|
|
Use BIA
|
|
ipv6_redirects
boolean
|
|
Enables/disables ipv6 redirects.
|
|
ipv6_unreachables
boolean
|
|
Enables/disables ip redirects.
|
|
ipv6_verify
dictionary
|
|
Unicast Reverse Path Forwarding.
|
|
|
unicast
dictionary
|
|
Unicast Reverse Path Forwarding.
|
|
|
|
source
dictionary
|
|
Validation of source address.
|
|
|
|
|
reachable_via
dictionary
|
|
Specify reachability check to apply to the source address.
|
|
|
|
|
|
allow_default
boolean
|
|
Loose Default Route Unicast Reverse Path Forwarding.
|
|
|
|
|
|
mode
string
|
|
Source is reachable via any/rx interface.
|
|
mac_address
string
|
|
Manually set interface MAC address or extract the MAC address (3) from the IPv6 address configured on the interface.
|
|
name
string
/ required
|
|
Full name of L3 interface, i.e. Ethernet1/1.
|
|
port_unreachable
boolean
|
|
Enable sending ICMP port-unreachable.
|
|
proxy_arp
boolean
|
|
Configure proxy ARP.
|
|
redirects
boolean
|
|
Enables/disables ipv4 redirects.
|
|
unreachables
boolean
|
|
Enables/disables ip redirects.
|
|
verify
dictionary
|
|
Configure Unicast Reverse Path Forwarding or IP Source Guard.
|
|
|
unicast
dictionary
|
|
Unicast Reverse Path Forwarding.
|
|
|
|
source
dictionary
|
|
Validation of source address.
|
|
|
|
|
reachable_via
dictionary
|
|
Specify reachability check to apply to the source address.
|
|
|
|
|
|
allow_default
boolean
|
|
Loose Default Route Unicast Reverse Path Forwarding.
|
|
|
|
|
|
mode
string
|
|
Source is reachable via any/rx interface.
|
|
running_config
string
|
|
This option is used only with state parsed.
The value of this option should be the output received from the IOS 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
- rendered
- gathered
- parsed
|
The state the configuration should be left in
The states rendered, gathered and parsed does not perform any change on the device.
The state rendered will transform the configuration in config option to platform specific CLI commands which will be returned in the rendered key within the result. For state rendered active connection to remote host is not required.
The state gathered will fetch the running configuration from device and transform it into structured data in the format as per the resource module argspec and the value is returned in the gathered key within the result.
The state parsed reads the configuration from running_config option and transforms it into JSON format as per the resource module parameters and the value is returned in the parsed key within the result. The value of running_config option should be the same format as the output of command show running-config | section ^interface executed on device. For state parsed active connection to remote host is not required.
|