.. _cisco.ios.ios_ospf_interfaces_module:
*****************************
cisco.ios.ios_ospf_interfaces
*****************************
**Resource module to configure OSPF interfaces.**
Version added: 1.0.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module configures and manages the Open Shortest Path First (OSPF) version 2 on IOS platforms.
Parameters
----------
.. raw:: html
| Parameter |
Choices/Defaults |
Comments |
|
config
list
/ elements=dictionary
|
|
A dictionary of OSPF interfaces options.
|
|
address_family
list
/ elements=dictionary
|
|
OSPF interfaces settings on the interfaces in address-family context.
|
|
|
adjacency
boolean
|
|
Adjacency staggering
|
|
|
afi
string
/ required
|
|
Address Family Identifier (AFI) for OSPF interfaces settings on the interfaces.
|
|
|
authentication
dictionary
|
|
Enable authentication
|
|
|
|
key_chain
string
|
|
Use a key-chain for cryptographic authentication keys
|
|
|
|
message_digest
boolean
|
|
Use message-digest authentication
|
|
|
|
null
boolean
|
|
Use no authentication
|
|
|
bfd
boolean
|
|
BFD configuration commands
Enable/Disable BFD on this interface
|
|
|
cost
dictionary
|
|
Interface cost
|
|
|
|
dynamic_cost
dictionary
|
|
Specify dynamic cost options
Valid only with IPv6 OSPF config
|
|
|
|
|
default
integer
|
|
Specify default link metric value
|
|
|
|
|
hysteresis
dictionary
|
|
Specify hysteresis value for LSA dampening
|
|
|
|
|
|
percent
integer
|
|
Specify hysteresis percent changed. Please refer vendor documentation of Valid values.
|
|
|
|
|
|
threshold
integer
|
|
Specify hysteresis threshold value. Please refer vendor documentation of Valid values.
|
|
|
|
|
weight
dictionary
|
|
Specify weight to be placed on individual metrics
|
|
|
|
|
|
l2_factor
integer
|
|
Specify weight to be given to L2-factor metric
Percentage weight of L2-factor metric. Please refer vendor documentation of Valid values.
|
|
|
|
|
|
latency
integer
|
|
Specify weight to be given to latency metric.
Percentage weight of latency metric. Please refer vendor documentation of Valid values.
|
|
|
|
|
|
oc
boolean
|
|
Specify weight to be given to cdr/mdr for oc
Give 100 percent weightage for current data rate(0 for maxdatarate)
|
|
|
|
|
|
resources
integer
|
|
Specify weight to be given to resources metric
Percentage weight of resources metric. Please refer vendor documentation of Valid values.
|
|
|
|
|
|
throughput
integer
|
|
Specify weight to be given to throughput metric
Percentage weight of throughput metric. Please refer vendor documentation of Valid values.
|
|
|
|
interface_cost
integer
|
|
Interface cost or Route cost of this interface
|
|
|
database_filter
boolean
|
|
Filter OSPF LSA during synchronization and flooding
|
|
|
dead_interval
dictionary
|
|
Interval after which a neighbor is declared dead
|
|
|
|
minimal
integer
|
|
Set to 1 second and set multiplier for Hellos
Number of Hellos sent within 1 second. Please refer vendor documentation of Valid values.
Valid only with IP OSPF config
|
|
|
|
time
integer
|
|
time in seconds
|
|
|
demand_circuit
dictionary
|
|
OSPF Demand Circuit, enable or disable the demand circuit'
|
|
|
|
disable
boolean
|
|
Disable demand circuit on this interface
Valid only with IPv6 OSPF config
|
|
|
|
enable
boolean
|
|
Enable Demand Circuit
|
|
|
|
ignore
boolean
|
|
Ignore demand circuit auto-negotiation requests
|
|
|
flood_reduction
boolean
|
|
OSPF Flood Reduction
|
|
|
hello_interval
integer
|
|
Time between HELLO packets
Please refer vendor documentation of Valid values.
|
|
|
lls
boolean
|
|
Link-local Signaling (LLS) support
Valid only with IP OSPF config
|
|
|
manet
dictionary
|
|
Mobile Adhoc Networking options
MANET Peering options
Valid only with IPv6 OSPF config
|
|
|
|
cost
dictionary
|
|
Redundant path cost improvement required to peer
|
|
|
|
|
percent
integer
|
|
Relative incremental path cost. Please refer vendor documentation of Valid values.
|
|
|
|
|
threshold
integer
|
|
Absolute incremental path cost. Please refer vendor documentation of Valid values.
|
|
|
|
link_metrics
dictionary
|
|
Redundant path cost improvement required to peer
|
|
|
|
|
cost_threshold
integer
|
|
Minimum link cost threshold. Please refer vendor documentation of Valid values.
|
|
|
|
|
set
boolean
|
|
Enable link-metrics
|
|
|
mtu_ignore
boolean
|
|
Ignores the MTU in DBD packets
|
|
|
multi_area
dictionary
|
|
Set the OSPF multi-area ID
Valid only with IP OSPF config
|
|
|
|
cost
integer
|
|
Interface cost
|
|
|
|
id
integer
|
|
OSPF multi-area ID as a decimal value. Please refer vendor documentation of Valid values.
OSPF multi-area ID in IP address format(e.g. A.B.C.D)
|
|
|
neighbor
dictionary
|
|
OSPF neighbor link-local IPv6 address (X:X:X:X::X)
Valid only with IPv6 OSPF config
|
|
|
|
address
string
|
|
Neighbor link-local IPv6 address
|
|
|
|
cost
integer
|
|
OSPF cost for point-to-multipoint neighbor
|
|
|
|
database_filter
boolean
|
|
Filter OSPF LSA during synchronization and flooding for point-to-multipoint neighbor
|
|
|
|
poll_interval
integer
|
|
OSPF dead-router polling interval
|
|
|
|
priority
integer
|
|
OSPF priority of non-broadcast neighbor
|
|
|
network
dictionary
|
|
Network type
|
|
|
|
broadcast
boolean
|
|
Specify OSPF broadcast multi-access network
|
|
|
|
manet
boolean
|
|
Specify MANET OSPF interface type
Valid only with IPv6 OSPF config
|
|
|
|
non_broadcast
boolean
|
|
Specify OSPF NBMA network
|
|
|
|
point_to_multipoint
boolean
|
|
Specify OSPF point-to-multipoint network
|
|
|
|
point_to_point
boolean
|
|
Specify OSPF point-to-point network
|
|
|
prefix_suppression
boolean
|
|
Enable/Disable OSPF prefix suppression
|
|
|
priority
integer
|
|
Router priority. Please refer vendor documentation of Valid values.
|
|
|
process
dictionary
|
|
OSPF interfaces process config
|
|
|
|
area_id
string
|
|
OSPF interfaces area ID as a decimal value. Please refer vendor documentation of Valid values.
OSPF interfaces area ID in IP address format(e.g. A.B.C.D)
|
|
|
|
id
integer
|
|
Address Family Identifier (AFI) for OSPF interfaces settings on the interfaces. Please refer vendor documentation of Valid values.
|
|
|
|
instance_id
integer
|
|
Set the OSPF instance based on ID
Valid only with IPv6 OSPF config
|
|
|
|
secondaries
boolean
|
|
Include or exclude secondary IP addresses.
Valid only with IPv4 config
|
|
|
resync_timeout
integer
|
|
Interval after which adjacency is reset if oob-resync is not started. Please refer vendor documentation of Valid values.
|
|
|
retransmit_interval
integer
|
|
Time between retransmitting lost link state advertisements. Please refer vendor documentation of Valid values.
|
|
|
shutdown
boolean
|
|
Set OSPF protocol's state to disable under current interface
|
|
|
transmit_delay
integer
|
|
Link state transmit delay. Please refer vendor documentation of Valid values.
|
|
|
ttl_security
dictionary
|
|
TTL security check
Valid only with IPV4 OSPF config
|
|
|
|
hops
integer
|
|
Maximum number of IP hops allowed
Please refer vendor documentation of Valid values.
|
|
|
|
set
boolean
|
|
Enable TTL Security on all interfaces
|
|
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 device by executing the command sh 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
|
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.
|