arista.eos.eos_ospfv2 module – OSPFv2 resource module
Note
This module is part of the arista.eos collection (version 6.2.2).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install arista.eos
.
To use it in a playbook, specify: arista.eos.eos_ospfv2
.
New in arista.eos 1.0.0
Synopsis
This module configures and manages the attributes of ospfv2 on Arista EOS platforms.
Aliases: ospfv2
Parameters
Parameter |
Comments |
---|---|
A list of configurations for ospfv2. |
|
A list of dictionary specifying the ospfv2 processes. |
|
Configure adjacency options for OSPF instance. |
|
Configure exchange-start options for OSPF instance. |
|
Number of peers to bring up simultaneously. |
|
Specifies the configuration for OSPF areas |
|
Specifies a 32 bit number expressed in decimal or dotted-decimal notation. |
|
Specify the cost for default summary route in stub/NSSA area. |
|
Specify the filter for incoming summary LSAs. |
|
IP address. |
|
Specify list to filter for incoming LSAs. |
|
IP address with mask length |
|
IP subnet mask |
|
Configures NSSA parameters. |
|
Originate default Type 7 LSA. |
|
Metric for default route. |
|
Metric type for default route. |
|
Limit default advertisement to this NSSA area. Choices:
|
|
lsa parameters Choices:
|
|
Filter all type-3 LSAs in the nssa area. Choices:
|
|
Disable Type-7 LSA p-bit setting Choices:
|
|
Set config up to not-so-stubby Choices:
|
|
Configures NSSA parameters. |
|
Originate default Type 7 LSA. |
|
Metric for default route. |
|
Metric type for default route. |
|
Limit default advertisement to this NSSA area. Choices:
|
|
Filter all type-3 LSAs in the nssa area. Choices:
|
|
Disable Type-7 LSA p-bit setting Choices:
|
|
Set config up to nssa Choices:
|
|
Configure route summarization. |
|
IP address. |
|
Enable Advertisement of the range. Choices:
|
|
Configures the metric. |
|
IP address with mask length |
|
IP subnet mask |
|
Stub area. |
|
If False , Filter all type-3 LSAs in the stub area. Choices:
|
|
When true sets the stub config alone. Choices:
|
|
Set auto-cost. |
|
reference bandwidth in megabits per sec. |
|
Enable BFD. |
|
Enable BFD on all interfaces. Choices:
|
|
Control distribution of default information. |
|
Always advertise default route. Choices:
|
|
Metric for default route. |
|
Metric type for default route. |
|
Distribute a default route. Choices:
|
|
Specify which route-map to use. |
|
Configure the default metric for redistributed routes |
|
Specifies the administrative distance for routes. |
|
Routes external to the area |
|
Routes from other areas |
|
Routes with in an area |
|
Specifies the list of routes to be filtered. |
|
prefix list to be filtered |
|
route map to be filtered |
|
If true, Disable dn-bit check for Type-3 LSAs in non-default VRFs. Choices:
|
|
Use FIPS compliant algorithms |
|
Enable graceful restart mode. |
|
Specify maximum time to wait for graceful-restart to complete. |
|
When true sets the grace_fulrestart config alone. Choices:
|
|
If true, Enable graceful restart helper. Choices:
|
|
To configure link-state changes and transitions of OSPFv2 neighbors. |
|
If true , configures the switch to log all link-state changes. Choices:
|
|
Specifies the switch behavior on reaching max lsa count. |
|
maximum count of lsas. |
|
No. of times the switch can shut down temporarily on warning |
|
time in minutes, for which the switch shoud be shutdown on max-lsa warning |
|
Time in minutes, after which the shutdown counter resets. |
|
percentage of <count> , when a warning should be raised. |
|
Only give warning message when limit is exceeded Choices:
|
|
Set maximum metric. |
|
Maximum metric in self-originated router-LSAs. |
|
Override external-lsa metric with max-metric value. |
|
Set max metric value for external LSAs. |
|
Set external-lsa attribute. Choices:
|
|
Set maximum metric for stub links in router-LSAs. Choices:
|
|
Set maximum metric temporarily after reboot. |
|
Wait period in seconds after startup. |
|
Set router-lsa attribute. Choices:
|
|
Override summary-lsa metric with max-metric value. |
|
Set max metric value for external LSAs. |
|
Set external-lsa attribute. Choices:
|
|
Maximum number of next-hops in an ECMP route. |
|
mpls ldp sync configuration. Choices:
|
|
Configure routing for a network. |
|
Configure OSPF area. |
|
Network Wildcard Mask. |
|
Network Address. |
|
Prefix. |
|
Include interface but without actively running OSPF. |
|
If true, Set all interfaces to passive by default Choices:
|
|
Interface range. |
|
Configure Point-to-point specific features. Choices:
|
|
ID of OSPFV2 process. |
|
Specifies the routes to be redistributed |
|
ISIS levels. |
|
Specify which route map to use. |
|
Route types (BGP,isis,connected etc) |
|
Configure threshold for retransmission. |
|
Specifies different methods for calculating summary route metrics. Choices:
|
|
32-bit number assigned to a router running OSPFv2. |
|
Disable the OSPF instance. Choices:
|
|
Summary route configuration. |
|
IP summary address. |
|
Set attributes of summary route. |
|
Summary Mask. |
|
Do not advertise summary route. Choices:
|
|
Prefix. |
|
Set tag. |
|
Configure OSPF timers. |
|
Configure OSPF LSA timers. |
|
Configure OSPF LSA receiving timers |
|
Configure OSPF LSA arrival timer. |
|
Configure OSPF LSA transmission timers. |
|
Configure OSPF LSA transmission delay. |
|
Delay to generate first occurrence of LSA in msecs. |
|
Maximum delay between originating the same LSA in msecs. |
|
Min delay between originating the same LSA in msecs. |
|
Configure out-delay timer. |
|
Configure OSPF packet pacing. |
|
Configure SPF timers |
|
Initial SPF schedule delay in msecs. |
|
Max wait time between two SPFs in msecs. |
|
Min Hold time between two SPFs in msecs |
|
Seconds. |
|
Configure throttle timers(valid only for eos version < 4.23). |
|
throttle attribute. |
|
Initial schedule delay in msecs. |
|
Max wait time |
|
Min Hold time |
|
Enter traffic engineering config mode Choices:
|
|
VRF name . |
|
This option is used only with state parsed. The value of this option should be the output received from the EOS device by executing the command show running-config | section ospf. The state parsed reads the configuration from |
|
The state the configuration should be left in. Choices:
|
Notes
Note
Tested against Arista EOS 4.24.6F
This module works with connection
network_cli
. See the EOS Platform Options.
Examples
# Using merged
# Before state:
# -------------
# localhost#show running-config | section ospf
# localhost#
- name: Merge provided config into running config
arista.eos.eos_ospfv2:
config:
- processes:
- process_id: 1
adjacency:
exchange_start:
threshold: 20045623
areas:
- filter:
address: "10.1.1.0/24"
id: "0.0.0.2"
- id: "0.0.0.50"
range:
address: "172.20.0.0/16"
cost: 34
default_information:
metric: 100
metric_type: 1
originate: true
distance:
intra_area: 85
max_lsa:
count: 8000
ignore_count: 3
ignore_time: 6
reset_time: 20
threshold: 40
networks:
- area: "0.0.0.0"
prefix: 10.10.2.0/24
- area: "0.0.0.0"
prefix: "10.10.3.0/24"
redistribute:
- routes: "static"
router_id: "170.21.0.4"
- process_id: 2
vrf: "vrf01"
areas:
- id: "0.0.0.9"
default_cost: 20
max_lsa:
count: 8000
ignore_count: 3
ignore_time: 6
reset_time: 20
threshold: 40
networks:
- area: "0.0.0.0"
prefix: 10.10.2.0/24
- area: "0.0.0.0"
prefix: "10.10.3.0/24"
redistribute:
- routes: "static"
router_id: "170.21.0.4"
- process_id: 2
vrf: "vrf01"
areas:
- id: "0.0.0.9"
default_cost: 20
max_lsa:
count: 8000
ignore_count: 3
ignore_time: 6
reset_time: 20
threshold: 40
- process_id: 3
vrf: "vrf02"
redistribute:
- routes: "connected"
# Task output:
# ------------
# before: {}
# commands
# - router ospf 1
# - adjacency exchange-start threshold 20045623
# - area 0.0.0.2 filter 10.1.1.0/24
# - area 0.0.0.50 range 172.20.0.0/16 cost 34
# - default-information originate metric 100 metric-type 1
# - distance ospf intra-area 85
# - max-lsa 8000 40 ignore-count 3 ignore-time 6 reset-time 20
# - network 10.10.2.0/24 area 0.0.0.0
# - network 10.10.3.0/24 area 0.0.0.0
# - redistribute static
# - router-id 170.21.0.4
# - exit
# - router ospf 2 vrf vrf01
# - area 0.0.0.9 default-cost 20
# - max-lsa 8000 40 ignore-count 3 ignore-time 6 reset-time 20
# - network 10.10.2.0/24 area 0.0.0.0
# - network 10.10.3.0/24 area 0.0.0.0
# - redistribute static
# - router-id 170.21.0.4
# - exit
# - router ospf 2 vrf vrf01
# - area 0.0.0.9 default-cost 20
# - max-lsa 8000 40 ignore-count 3 ignore-time 6 reset-time 20
# - exit
# - router ospf 3 vrf vrf02
# - redistribute connected
# - exit
#
# after:
# processes:
# - adjacency:
# exchange_start:
# threshold: 20045623
# areas:
# - area_id: 0.0.0.2
# filter:
# address: 10.1.1.0/24
# - area_id: 0.0.0.50
# range:
# address: 172.20.0.0/16
# cost: 34
# default_information:
# metric: 100
# metric_type: 1
# originate: true
# distance:
# intra_area: 85
# max_lsa:
# count: 8000
# ignore_count: 3
# ignore_time: 6
# reset_time: 20
# threshold: 40
# networks:
# - area: 0.0.0.0
# prefix: 10.10.2.0/24
# - area: 0.0.0.0
# prefix: 10.10.3.0/24
# process_id: 1
# redistribute:
# - routes: static
# router_id: 170.21.0.4
# - areas:
# - area_id: 0.0.0.9
# default_cost: 20
# max_lsa:
# count: 8000
# ignore_count: 3
# ignore_time: 6
# reset_time: 20
# threshold: 40
# process_id: 2
# vrf: vrf01
# - max_lsa:
# count: 12000
# process_id: 3
# redistribute:
# - routes: connected
# vrf: vrf02
# After state:
# ------------
# localhost#show running-config | section ospf
# router ospf 1
# router-id 170.21.0.4
# distance ospf intra-area 85
# redistribute static
# area 0.0.0.2 filter 10.1.1.0/24
# area 0.0.0.50 range 172.20.0.0/16 cost 34
# network 10.10.2.0/24 area 0.0.0.0
# network 10.10.3.0/24 area 0.0.0.0
# max-lsa 8000 40 ignore-time 6 ignore-count 3 reset-time 20
# adjacency exchange-start threshold 20045623
# default-information originate metric 100 metric-type 1
#
# router ospf 2 vrf vrf01
# area 0.0.0.9 default-cost 20
# max-lsa 8000 40 ignore-time 6 ignore-count 3 reset-time 20
# !
# router ospf 3 vrf vrf02
# redistribute connected
# max-lsa 12000
# Using replaced
# Before State:
# -------------
# localhost#show running-config | section ospf
# router ospf 1
# router-id 170.21.0.4
# distance ospf intra-area 85
# redistribute static
# area 0.0.0.2 filter 10.1.1.0/24
# area 0.0.0.50 range 172.20.0.0/16 cost 34
# network 10.10.2.0/24 area 0.0.0.0
# network 10.10.3.0/24 area 0.0.0.0
# max-lsa 8000 40 ignore-time 6 ignore-count 3 reset-time 20
# adjacency exchange-start threshold 20045623
# default-information originate metric 100 metric-type 1
# !
# router ospf 2 vrf vrf01
# area 0.0.0.9 default-cost 20
# max-lsa 8000 40 ignore-time 6 ignore-count 3 reset-time 20
# !
# router ospf 3 vrf vrf02
# redistribute connected
# max-lsa 12000
#
- name: replace Ospf configs
arista.eos.eos_ospfv2:
config:
- processes:
- process_id: 2
vrf: "vrf01"
point_to_point: true
redistribute:
- routes: "isis"
isis_level: "level-1"
state: replaced
# Task output:
# ------------
# before:
# processes:
# - adjacency:
# exchange_start:
# threshold: 20045623
# areas:
# - area_id: 0.0.0.2
# filter:
# address: 10.1.1.0/24
# - area_id: 0.0.0.50
# range:
# address: 172.20.0.0/16
# cost: 34
# default_information:
# metric: 100
# metric_type: 1
# originate: true
# distance:
# intra_area: 85
# max_lsa:
# count: 8000
# ignore_count: 3
# ignore_time: 6
# reset_time: 20
# threshold: 40
# networks:
# - area: 0.0.0.0
# prefix: 10.10.2.0/24
# - area: 0.0.0.0
# prefix: 10.10.3.0/24
# process_id: 1
# redistribute:
# - routes: static
# router_id: 170.21.0.4
# - areas:
# - area_id: 0.0.0.9
# default_cost: 20
# max_lsa:
# count: 8000
# ignore_count: 3
# ignore_time: 6
# reset_time: 20
# threshold: 40
# process_id: 2
# vrf: vrf01
# - max_lsa:
# count: 12000
# process_id: 3
# redistribute:
# - routes: connected
# vrf: vrf02
#
# commands:
# - router ospf 2 vrf vrf01
# - no area 0.0.0.9 default-cost 20
# - no max-lsa 8000 40 ignore-time 6 ignore-count 3 reset-time 20
# - point-to-point routes
# - redistribute isis level-1
#
# after:
# processes:
# - adjacency:
# exchange_start:
# threshold: 20045623
# areas:
# - area_id: 0.0.0.2
# filter:
# address: 10.1.1.0/24
# - area_id: 0.0.0.50
# range:
# address: 172.20.0.0/16
# cost: 34
# default_information:
# metric: 100
# metric_type: 1
# originate: true
# distance:
# intra_area: 85
# max_lsa:
# count: 8000
# ignore_count: 3
# ignore_time: 6
# reset_time: 20
# threshold: 40
# networks:
# - area: 0.0.0.0
# prefix: 10.10.2.0/24
# - area: 0.0.0.0
# prefix: 10.10.3.0/24
# process_id: 1
# redistribute:
# - routes: static
# router_id: 170.21.0.4
# - max_lsa:
# count: 12000
# process_id: 2
# redistribute:
# - isis_level: level-1
# routes: isis
# vrf: vrf01
# - max_lsa:
# count: 12000
# process_id: 3
# redistribute:
# - routes: connected
# vrf: vrf02
# After state:
# ------------
# localhost#show running-config | section ospf
# router ospf 1
# router-id 170.21.0.4
# distance ospf intra-area 85
# redistribute static
# area 0.0.0.2 filter 10.1.1.0/24
# area 0.0.0.50 range 172.20.0.0/16 cost 34
# network 10.10.2.0/24 area 0.0.0.0
# network 10.10.3.0/24 area 0.0.0.0
# max-lsa 8000 40 ignore-time 6 ignore-count 3 reset-time 20
# adjacency exchange-start threshold 20045623
# default-information originate metric 100 metric-type 1
# !
# router ospf 2 vrf vrf01
# redistribute isis level-1
# max-lsa 12000
# !
# router ospf 3 vrf vrf02
# redistribute connected
# max-lsa 12000
# Using overridden
# Before state:
# -------------
# localhost#show running-config | section ospf
# router ospf 1
# router-id 170.21.0.4
# distance ospf intra-area 85
# redistribute static
# area 0.0.0.2 filter 10.1.1.0/24
# area 0.0.0.50 range 172.20.0.0/16 cost 34
# network 10.10.2.0/24 area 0.0.0.0
# network 10.10.3.0/24 area 0.0.0.0
# max-lsa 8000 40 ignore-time 6 ignore-count 3 reset-time 20
# adjacency exchange-start threshold 20045623
# default-information originate metric 100 metric-type 1
# !
# router ospf 2 vrf vrf01
# redistribute isis level-1
# max-lsa 12000
# !
# router ospf 3 vrf vrf02
# redistribute connected
# max-lsa 12000
- name: override running config with provided config
arista.eos.eos_ospfv2:
config:
- processes:
- process_id: 2
vrf: "vrf01"
redistribute:
- routes: "connected"
state: overriden
# Task output:
# ------------
# before:
# processes:
# - adjacency:
# exchange_start:
# threshold: 20045623
# areas:
# - area_id: 0.0.0.2
# filter:
# address: 10.1.1.0/24
# - area_id: 0.0.0.50
# range:
# address: 172.20.0.0/16
# cost: 34
# default_information:
# metric: 100
# metric_type: 1
# originate: true
# distance:
# intra_area: 85
# max_lsa:
# count: 8000
# ignore_count: 3
# ignore_time: 6
# reset_time: 20
# threshold: 40
# networks:
# - area: 0.0.0.0
# prefix: 10.10.2.0/24
# - area: 0.0.0.0
# prefix: 10.10.3.0/24
# process_id: 1
# redistribute:
# - routes: static
# router_id: 170.21.0.4
# - max_lsa:
# count: 12000
# process_id: 2
# redistribute:
# - isis_level: level-1
# routes: isis
# vrf: vrf01
# - max_lsa:
# count: 12000
# process_id: 3
# redistribute:
# - routes: connected
# vrf: vrf02
#
# commands:
# - no router ospf 1
# - no router ospf 3
# - router ospf 2 vrf vrf01
# - no max-lsa 12000
# - no redistribute isis level-1
# - redistribute connected
#
# after:
# processes:
# - max_lsa:
# count: 12000
# process_id: 2
# redistribute:
# - isis_level: level-1
# routes: isis
# vrf: vrf01
# After state:
# ------------
# localhost#show running-config | section ospf
# router ospf 2 vrf vrf01
# redistribute isis level-1
# max-lsa 12000
# !
# Using deleted
# Before state:
# -------------
# localhost#show running-config | section ospf
# router ospf 1
# router-id 170.21.0.4
# distance ospf intra-area 85
# redistribute static
# area 0.0.0.2 filter 10.1.1.0/24
# area 0.0.0.50 range 172.20.0.0/16 cost 34
# network 10.10.2.0/24 area 0.0.0.0
# network 10.10.3.0/24 area 0.0.0.0
# max-lsa 8000 40 ignore-time 6 ignore-count 3 reset-time 20
# adjacency exchange-start threshold 20045623
# default-information originate metric 100 metric-type 1
# !
# router ospf 2 vrf vrf01
# redistribute connected
# area 0.0.0.9 default-cost 20
# max-lsa 8000 40 ignore-time 6 ignore-count 3 reset-time 20
# !
# router ospf 3 vrf vrf02
# redistribute connected
# max-lsa 12000
#
- name: Delete OSPF config
arista.eos.eos_ospfv2:
config:
processes:
- process_id: 1
state: deleted
# Task output:
# ------------
# before:
# processes:
# - adjacency:
# exchange_start:
# threshold: 20045623
# areas:
# - area_id: 0.0.0.2
# filter:
# address: 10.1.1.0/24
# - area_id: 0.0.0.50
# range:
# address: 172.20.0.0/16
# cost: 34
# default_information:
# metric: 100
# metric_type: 1
# originate: true
# distance:
# intra_area: 85
# max_lsa:
# count: 8000
# ignore_count: 3
# ignore_time: 6
# reset_time: 20
# threshold: 40
# networks:
# - area: 0.0.0.0
# prefix: 10.10.2.0/24
# - area: 0.0.0.0
# prefix: 10.10.3.0/24
# process_id: 1
# redistribute:
# - routes: static
# router_id: 170.21.0.4
# - areas:
# - area_id: 0.0.0.9
# default_cost: 20
# max_lsa:
# count: 8000
# ignore_count: 3
# ignore_time: 6
# reset_time: 20
# threshold: 40
# process_id: 2
# redistribute:
# - routes: connected
# vrf: vrf01
# - max_lsa:
# count: 12000
# process_id: 3
# redistribute:
# - routes: connected
# vrf: vrf02
#
# commands:
# - no router ospf 1
#
# after:
# processes:
# - areas:
# - area_id: 0.0.0.9
# default_cost: 20
# max_lsa:
# count: 8000
# ignore_count: 3
# ignore_time: 6
# reset_time: 20
# threshold: 40
# process_id: 2
# redistribute:
# - routes: connected
# vrf: vrf01
# - max_lsa:
# count: 12000
# process_id: 3
# redistribute:
# - routes: connected
# vrf: vrf02
# After state:
# ------------
# localhost#show running-config | section ospf
# router ospf 2 vrf vrf01
# redistribute connected
# area 0.0.0.9 default-cost 20
# max-lsa 8000 40 ignore-time 6 ignore-count 3 reset-time 20
# !
# router ospf 3 vrf vrf02
# redistribute connected
# max-lsa 12000
# Using gathered
# localhost#show running-config | section ospf
# router ospf 2 vrf vrf01
# redistribute connected
# area 0.0.0.9 default-cost 20
# max-lsa 8000 40 ignore-time 6 ignore-count 3 reset-time 20
# !
# router ospf 3 vrf vrf02
# redistribute connected
# max-lsa 12000
- name: replace Ospf configs
arista.eos.eos_ospfv2:
state: gathered
# Task output:
# ------------
# gathered:
# processes:
# - areas:
# - area_id: 0.0.0.9
# default_cost: 20
# max_lsa:
# count: 8000
# ignore_count: 3
# ignore_time: 6
# reset_time: 20
# threshold: 40
# process_id: 2
# redistribute:
# - routes: connected
# vrf: vrf01
# - max_lsa:
# count: 12000
# process_id: 3
# redistribute:
# - routes: connected
# vrf: vrf02
# Using parsed
# ------------
# parsed.cfg
# router ospf 1
# adjacency exchange-start threshold 20045623
# area 0.0.0.2 filter 10.1.1.0/24
# area 0.0.0.50 range 172.20.0.0/16 cost 34
# default-information originate metric 100 metric-type 1
# distance ospf intra-area 85
# max-lsa 80000 40 ignore-count 3 ignore-time 6 reset-time 20
# network 10.10.2.0/24 area 0.0.0.0
# network 10.10.3.0/24 area 0.0.0.0
# redistribute static
# router-id 170.21.0.4
# router ospf 2 vrf vrf01,
# area 0.0.0.9 default-cost 20
# max-lsa 80000 40 ignore-count 3 ignore-time 6 reset-time 20
# router ospf 3 vrf vrf02
# redistribute static
- name: Parse running config and display structured facts
arista.eos.eos_ospfv2:
running_config: "{{ lookup('file', './parsed.cfg') }}"
state: parsed
# Task output:
# ------------
# parsed:
# processes:
# - adjacency:
# exchange_start:
# threshold: 20045623
# areas:
# - area_id: 0.0.0.2
# filter:
# address: 10.1.1.0/24
# - area_id: 0.0.0.50
# range:
# address: 172.20.0.0/16
# cost: 34
# default_information:
# metric: 100
# metric_type: 1
# originate: true
# distance:
# intra_area: 85
# max_lsa:
# count: 80000
# ignore_count: 3
# ignore_time: 6
# reset_time: 20
# threshold: 40
# networks:
# - area: 0.0.0.0
# prefix: 10.10.2.0/24
# - area: 0.0.0.0
# prefix: 10.10.3.0/24
# process_id: 1
# redistribute:
# - routes: static
# router_id: 170.21.0.4
# - areas:
# - area_id: 0.0.0.9
# default_cost: 20
# max_lsa:
# count: 80000
# ignore_count: 3
# ignore_time: 6
# reset_time: 20
# threshold: 40
# process_id: 2
# vrf: vrf01,
# - process_id: 3
# redistribute:
# - routes: static
# vrf: vrf02
# Using rendered
- name: replace Ospf configs
arista.eos.eos_ospfv2:
config:
processes:
- process_id: 1
adjacency:
exchange_start:
threshold: 20045623
areas:
- filter:
address: "10.1.1.0/24"
area_id: "0.0.0.2"
- area_id: "0.0.0.50"
range:
address: "172.20.0.0/16"
cost: 34
default_information:
metric: 100
metric_type: 1
originate: true
distance:
intra_area: 85
max_lsa:
count: 8000
ignore_count: 3
ignore_time: 6
reset_time: 20
threshold: 40
networks:
- area: "0.0.0.0"
prefix: 10.10.2.0/24
- area: "0.0.0.0"
prefix: "10.10.3.0/24"
redistribute:
- routes: "static"
router_id: "170.21.0.4"
- process_id: 2
vrf: "vrf01"
areas:
- area_id: "0.0.0.9"
default_cost: 20
max_lsa:
count: 8000
ignore_count: 3
ignore_time: 6
reset_time: 20
threshold: 40
networks:
- area: "0.0.0.0"
prefix: 10.10.2.0/24
- area: "0.0.0.0"
prefix: "10.10.3.0/24"
redistribute:
- routes: "static"
router_id: "170.21.0.4"
- process_id: 2
vrf: "vrf01"
areas:
- area_id: "0.0.0.9"
default_cost: 20
max_lsa:
count: 8000
ignore_count: 3
ignore_time: 6
reset_time: 20
threshold: 40
- process_id: 3
vrf: "vrf02"
redistribute:
- routes: "connected"
state: rendered
# rendered:
# - router ospf 1
# - adjacency exchange-start threshold 20045623
# - area 0.0.0.2 filter 10.1.1.0/24
# - area 0.0.0.50 range 172.20.0.0/16 cost 34
# - default-information originate metric 100 metric-type 1
# - distance ospf intra-area 85
# - max-lsa 8000 40 ignore-count 3 ignore-time 6 reset-time 20
# - network 10.10.2.0/24 area 0.0.0.0
# - network 10.10.3.0/24 area 0.0.0.0
# - redistribute static
# - router-id 170.21.0.4
# - exit
# - router ospf 2 vrf vrf01
# - area 0.0.0.9 default-cost 20
# - max-lsa 8000 40 ignore-count 3 ignore-time 6 reset-time 20
# - network 10.10.2.0/24 area 0.0.0.0
# - network 10.10.3.0/24 area 0.0.0.0
# - redistribute static
# - router-id 170.21.0.4
# - exit
# - router ospf 2 vrf vrf01
# - area 0.0.0.9 default-cost 20
# - max-lsa 8000 40 ignore-count 3 ignore-time 6 reset-time 20
# - exit
# - router ospf 3 vrf vrf02
# - redistribute connected
# - exit
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
The resulting configuration after module execution. Returned: when changed Sample: |
|
The configuration prior to the module execution. Returned: when state is Sample: |
|
The set of commands pushed to the remote device. Returned: when state is Sample: |
|
Facts about the network resource gathered from the remote device as structured data. Returned: when state is Sample: |
|
The device native config provided in running_config option parsed into structured data as per module argspec. Returned: when state is Sample: |
|
The provided configuration in the task rendered in device-native format (offline). Returned: when state is Sample: |