.. _vyos.vyos.vyos_ospfv2_module:
*********************
vyos.vyos.vyos_ospfv2
*********************
**OSPFv2 resource module**
Version added: 1.0.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This resource module configures and manages attributes of OSPFv2 routes on VyOS network devices.
Parameters
----------
.. raw:: html
Parameter |
Choices/Defaults |
Comments |
config
dictionary
|
|
A provided OSPFv2 route configuration.
|
|
areas
list
/ elements=dictionary
|
|
OSPFv2 area.
|
|
|
area_id
string
|
|
OSPFv2 area identity.
|
|
|
area_type
dictionary
|
|
Area type.
|
|
|
|
normal
boolean
|
|
Normal OSPFv2 area.
|
|
|
|
nssa
dictionary
|
|
NSSA OSPFv2 area.
|
|
|
|
|
default_cost
integer
|
|
Summary-default cost of NSSA area.
|
|
|
|
|
no_summary
boolean
|
|
Do not inject inter-area routes into stub.
|
|
|
|
|
set
boolean
|
|
Enabling NSSA.
|
|
|
|
|
translate
string
|
Choices:
- always
- candidate
- never
|
NSSA-ABR.
|
|
|
|
stub
dictionary
|
|
Stub OSPFv2 area.
|
|
|
|
|
default_cost
integer
|
|
Summary-default cost of stub area.
|
|
|
|
|
no_summary
boolean
|
|
Do not inject inter-area routes into stub.
|
|
|
|
|
set
boolean
|
|
Enabling stub.
|
|
|
authentication
string
|
Choices:
- plaintext-password
- md5
|
OSPFv2 area authentication type.
|
|
|
network
list
/ elements=dictionary
|
|
OSPFv2 network.
|
|
|
|
address
string
/ required
|
|
OSPFv2 IPv4 network address.
|
|
|
range
list
/ elements=dictionary
|
|
Summarize routes matching prefix (border routers only).
|
|
|
|
address
string
|
|
border router IPv4 address.
|
|
|
|
cost
integer
|
|
Metric for this range.
|
|
|
|
not_advertise
boolean
|
|
Don't advertise this range.
|
|
|
|
substitute
string
|
|
Announce area range (IPv4 address) as another prefix.
|
|
|
shortcut
string
|
Choices:
- default
- disable
- enable
|
Area's shortcut mode.
|
|
|
virtual_link
list
/ elements=dictionary
|
|
Virtual link address.
|
|
|
|
address
string
|
|
virtual link address.
|
|
|
|
authentication
dictionary
|
|
OSPFv2 area authentication type.
|
|
|
|
|
md5
list
/ elements=dictionary
|
|
MD5 key id based authentication.
|
|
|
|
|
|
key_id
integer
|
|
MD5 key id.
|
|
|
|
|
|
md5_key
string
|
|
MD5 key.
|
|
|
|
|
plaintext_password
string
|
|
Plain text password.
|
|
|
|
dead_interval
integer
|
|
Interval after which a neighbor is declared dead.
|
|
|
|
hello_interval
integer
|
|
Interval between hello packets.
|
|
|
|
retransmit_interval
integer
|
|
Interval between retransmitting lost link state advertisements.
|
|
|
|
transmit_delay
integer
|
|
Link state transmit delay.
|
|
auto_cost
dictionary
|
|
Calculate OSPFv2 interface cost according to bandwidth.
|
|
|
reference_bandwidth
integer
|
|
Reference bandwidth cost in Mbits/sec.
|
|
default_information
dictionary
|
|
Control distribution of default information.
|
|
|
originate
dictionary
|
|
Distribute a default route.
|
|
|
|
always
boolean
|
|
Always advertise default route.
|
|
|
|
metric
integer
|
|
OSPFv2 default metric.
|
|
|
|
metric_type
integer
|
|
OSPFv2 Metric types for default routes.
|
|
|
|
route_map
string
|
|
Route map references.
|
|
default_metric
integer
|
|
Metric of redistributed routes
|
|
distance
dictionary
|
|
Administrative distance.
|
|
|
global
integer
|
|
Global OSPFv2 administrative distance.
|
|
|
ospf
dictionary
|
|
OSPFv2 administrative distance.
|
|
|
|
external
integer
|
|
Distance for external routes.
|
|
|
|
inter_area
integer
|
|
Distance for inter-area routes.
|
|
|
|
intra_area
integer
|
|
Distance for intra-area routes.
|
|
log_adjacency_changes
string
|
|
Log changes in adjacency state.
|
|
max_metric
dictionary
|
|
OSPFv2 maximum/infinite-distance metric.
|
|
|
router_lsa
dictionary
|
|
Advertise own Router-LSA with infinite distance (stub router).
|
|
|
|
administrative
boolean
|
|
Administratively apply, for an indefinite period.
|
|
|
|
on_shutdown
integer
|
|
Time to advertise self as stub-router.
|
|
|
|
on_startup
integer
|
|
Time to advertise self as stub-router
|
|
mpls_te
dictionary
|
|
MultiProtocol Label Switching-Traffic Engineering (MPLS-TE) parameters.
|
|
|
enabled
boolean
|
|
Enable MPLS-TE functionality.
|
|
|
router_address
string
|
|
Stable IP address of the advertising router.
|
|
neighbor
list
/ elements=dictionary
|
|
Neighbor IP address.
|
|
|
neighbor_id
string
|
|
Identity (number/IP address) of neighbor.
|
|
|
poll_interval
integer
|
|
Seconds between dead neighbor polling interval.
|
|
|
priority
integer
|
|
Neighbor priority.
|
|
parameters
dictionary
|
|
OSPFv2 specific parameters.
|
|
|
abr_type
string
|
Choices:
- cisco
- ibm
- shortcut
- standard
|
OSPFv2 ABR Type.
|
|
|
opaque_lsa
boolean
|
|
Enable the Opaque-LSA capability (rfc2370).
|
|
|
rfc1583_compatibility
boolean
|
|
Enable rfc1583 criteria for handling AS external routes.
|
|
|
router_id
string
|
|
Override the default router identifier.
|
|
passive_interface
list
/ elements=string
|
|
Suppress routing updates on an interface.
|
|
passive_interface_exclude
list
/ elements=string
|
|
Interface to exclude when using passive-interface default.
|
|
redistribute
list
/ elements=dictionary
|
|
Redistribute information from another routing protocol.
|
|
|
metric
integer
|
|
Metric for redistribution routes.
|
|
|
metric_type
integer
|
|
OSPFv2 Metric types.
|
|
|
route_map
string
|
|
Route map references.
|
|
|
route_type
string
|
Choices:
- bgp
- connected
- kernel
- rip
- static
|
Route type to redistribute.
|
|
route_map
list
/ elements=string
|
|
Filter routes installed in local route map.
|
|
timers
dictionary
|
|
Adjust routing timers.
|
|
|
refresh
dictionary
|
|
Adjust refresh parameters.
|
|
|
|
timers
integer
|
|
refresh timer.
|
|
|
throttle
dictionary
|
|
Throttling adaptive timers.
|
|
|
|
spf
dictionary
|
|
OSPFv2 SPF timers.
|
|
|
|
|
delay
integer
|
|
Delay (msec) from first change received till SPF calculation.
|
|
|
|
|
initial_holdtime
integer
|
|
Initial hold time(msec) between consecutive SPF calculations.
|
|
|
|
|
max_holdtime
integer
|
|
maximum hold time (sec).
|
running_config
string
|
|
This option is used only with state parsed.
The value of this option should be the output received from the VyOS device by executing the command show configuration commands | grep ospf.
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
- deleted
- parsed
- gathered
- rendered
|
The state the configuration should be left in.
|