.. _dellemc.enterprise_sonic.sonic_ospfv2_module:
*************************************
dellemc.enterprise_sonic.sonic_ospfv2
*************************************
**Configure global OSPFv2 protocol settings on SONiC.**
Version added: 2.5.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module provides configuration management of global OSPFv2 parameters on devices running SONiC.
- Configure VRF instance before configuring OSPF in a VRF.
Parameters
----------
.. raw:: html
| Parameter |
Choices/Defaults |
Comments |
|
config
list
/ elements=dictionary
|
|
Specifies the OSPFv2 related configuration.
non_passive_interfaces and passive_interfaces are mutually exclusive.
When default_passive=True, passive_interfaces cannot be configured.
When default_passive=False, non_passive_interfaces cannot be configured.
|
|
abr_type
string
|
Choices:
- cisco
- ibm
- shortcut
- standard
|
Configure router ABR type.
cisco - Cisco implementation type ABR.
ibm - IBM implementation type ABR.
shortcut - Shortcut ABR.
standard - RFC2328 Standard implementation ABR.
|
|
auto_cost_reference_bandwidth
integer
|
|
Configure interface auto cost reference bandwidth (1 to 4294967).
|
|
default_metric
integer
|
|
Configure metric for redistributed routes (0 to 16777214).
|
|
default_passive
boolean
|
|
Suppresses OSPFv2 routing updates on all interfaces.
|
|
distance
dictionary
|
|
Configure route administrative distance.
|
|
|
all
integer
|
|
Distance value for all type of routes (1 to 255).
|
|
|
external
integer
|
|
Distance value for external routes (1 to 255).
|
|
|
inter_area
integer
|
|
Distance value for inter-area routes (1 to 255).
|
|
|
intra_area
integer
|
|
Distance value for intra-area routes (1 to 255).
|
|
graceful_restart
dictionary
|
|
OSPF non stop forwarding (NSF) also known as OSPF Graceful Restart.
|
|
|
enable
boolean
|
|
Enable graceful restart.
|
|
|
grace_period
integer
|
|
Maximum length of the grace period in seconds (1 to 1800).
|
|
|
helper
dictionary
|
|
OSPF GR Helper.
|
|
|
|
advertise_router_id
list
/ elements=string
|
|
Advertising Router ID.
|
|
|
|
enable
boolean
|
|
Enable Helper support.
|
|
|
|
planned_only
boolean
|
|
Supported only planned restart.
|
|
|
|
strict_lsa_checking
boolean
|
|
Enable strict LSA check.
|
|
|
|
supported_grace_time
integer
|
|
Supported grace interval in seconds (10 to 1800).
|
|
log_adjacency_changes
string
|
|
Enable OSPFv2 adjacency state logs.
|
|
max_metric
dictionary
|
|
Enables infinite metric advertising in OSPFv2 LSAs.
|
|
|
administrative
boolean
|
|
Enables administrative type infinite metric advertising.
|
|
|
external_lsa_all
integer
|
|
Configure external LSA all prefix max metric advertising.
Configure the maximum metric value (1 to 16777215).
|
|
|
external_lsa_connected
integer
|
|
Configure external LSA connected prefix max metric advertising.
Configure the maximum metric value (1 to 16777215).
|
|
|
on_startup
integer
|
|
Enables infinite metric advertising at OSPFv2 router startup (5 to 86400).
|
|
|
router_lsa_all
integer
|
|
Configure router LSA all link max metric advertising.
Configure the maximum metric value (1 to 16777215).
|
|
|
router_lsa_stub
integer
|
|
Configure router LSA stub link max metric advertising.
Configure the maximum metric value (1 to 16777215).
|
|
maximum_paths
integer
|
|
Configure maximum number of multiple paths for ECMP support (1 to 256).
|
|
non_passive_interfaces
list
/ elements=dictionary
|
|
Configure non passive interface types.
|
|
|
addresses
list
/ elements=string
|
|
Configure Interface IPv4 addresses.
|
|
|
interface
string
/ required
|
|
Full name of the Layer 3 interface, i.e. Eth1/1.
|
|
opaque_lsa_capability
boolean
|
|
Enables opaque LSA capability.
|
|
passive_interfaces
list
/ elements=dictionary
|
|
Configure passive interface types.
|
|
|
addresses
list
/ elements=string
|
|
Configure Interface IPv4 addresses.
|
|
|
interface
string
/ required
|
|
Full name of the Layer 3 interface, i.e. Eth1/1.
|
|
redistribute
list
/ elements=dictionary
|
|
Configure route redistribution into OSPFv2 router.
|
|
|
always
boolean
|
|
Enable default route redistribution into OSPF always.
Only available for protocol=default_route.
|
|
|
metric
integer
|
|
Metric value for redistributed routes (0 to 16777214).
|
|
|
metric_type
integer
|
|
Metric type for redistributed routes.
|
|
|
protocol
string
/ required
|
Choices:
- bgp
- connected
- default_route
- kernel
- static
|
Configure the type of protocol to redistribute into OSPF.
Deleting protocol alone will also delete all the other configuration under redistribute.
bgp - Border Gateway Protocol.
connected - Directly connected or attached subnets and hosts.
default_route - Default routes.
kernel - Kernel routes other than FRR installed routes.
static - Statically configured routes.
|
|
|
route_map
string
|
|
Route map to filter redistributed routes.
Configure route map before.
|
|
refresh_timer
integer
|
|
Configures LSA refresh interval in seconds (10 to 1800).
|
|
rfc1583_compatible
boolean
|
|
Enable OSPFv2 RFC compatibility.
|
|
router_id
string
|
|
Configure OSPFv2 router identifier (A.B.C.D).
|
|
timers
dictionary
|
|
Configures router timers.
|
|
|
lsa_min_arrival
integer
|
|
LSA minimum arrival timer in milliseconds (0 to 600000).
|
|
|
throttle_lsa_all
integer
|
|
LSA delay between transmissions in milliseconds (0 to 5000).
|
|
|
throttle_spf
dictionary
|
|
OSPFv2 SPF timers.
delay_time, initial_hold_time and maximum_hold_time are required together.
|
|
|
|
delay_time
integer
|
|
SPF delay time in milliseconds (0 to 600000).
|
|
|
|
initial_hold_time
integer
|
|
SPF initial hold time in milliseconds (0 to 600000).
|
|
|
|
maximum_hold_time
integer
|
|
SPF maximum hold time in milliseconds (0 to 600000).
|
|
vrf_name
string
|
Default:
"default"
|
Specifies the vrf name.
|
|
write_multiplier
integer
|
|
Specifies the maximum number of interfaces serviced per write (1 to 100)
|
|
state
string
|
Choices:
merged ←
- deleted
- replaced
- overridden
|
Specifies the operation to be performed on the OSPFv2 process configured on the device.
In case of merged, the input configuration will be merged with the existing OSPFv2 configuration on the device.
In case of deleted, the existing OSPFv2 configuration will be removed from the device.
In case of overridden, all the existing OSPFv2 configuration will be deleted and the specified input configuration will be installed.
In case of replaced, the existing OSPFv2 configuration on the device will be replaced by the configuration in the playbook for each VRF group configured by the playbook.
|