cisco.iosxr.iosxr_ospfv3 module – ospfv3 resource module
Note
This module is part of the cisco.iosxr collection (version 2.9.0).
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 cisco.iosxr
.
To use it in a playbook, specify: cisco.iosxr.iosxr_ospfv3
.
New in version 1.1.0: of cisco.iosxr
Parameters
Parameter |
Comments |
---|---|
A list of ospfv3 process configuration |
|
A list of ospfv3 instances configuration |
|
Enable unicast topology for ipv4 address family Choices:
|
|
Configure ospfv3 areas’ properties |
|
Area ID as IP address or integer |
|
Enable authentication |
|
Do not authenticate OSPFv3 packets Choices:
|
|
Specify IPSec AH authentication attributes |
|
Specify the type of algorithim Choices:
|
|
Specify key in cleartext form |
|
Specify key |
|
Specify key in encrypted form |
|
Specify the Security Parameter Index value |
|
Configure BFD parameters |
|
Configure fast detection |
|
Enable fast detection only Choices:
|
|
Hold down neighbor session until BFD session is up Choices:
|
|
Hello interval in milli-seconds |
|
Detect multiplier |
|
Interface cost |
|
Filter LSAs during synchronization and flooding |
|
Filter all outgoing LSA Choices:
|
|
Interval after which a neighbor is declared dead |
|
Set the summary default-cost of a NSSA/stub area. Stub’s advertised external route metric |
|
Enable/Disable ospfv3 demand circuit Choices:
|
|
Filter LSAs during synchronization and flooding |
|
Encrypt and authenticate OSPFv3 packets |
|
Do not encrypt OSPFv3 packets Choices:
|
|
Specify IPSec ESP encryption and authentication |
|
Specify encryption parameters |
|
This specify the aes algorithim |
|
Specify the bit encryption for aes algorithim Choices:
|
|
Specify AES key in cleartext form |
|
Cleartext AES key |
|
Specify AES key in encrypted form |
|
This specify the des algorithim |
|
Specify AES key in cleartext form |
|
Cleartext AES key |
|
Specify AES key in encrypted form |
|
Specify null encryption attributes |
|
Specify authentication parameters |
|
Specify the type of algorithim Choices:
|
|
Specify key in cleartext form |
|
Specify key |
|
Specify key in encrypted form |
|
This specify the triple DES algorithim |
|
Specify 3DES key in cleartext form |
|
Cleartext 3DES key |
|
Specify 3DES key in encrypted form |
|
Specify the Security Parameter Index value |
|
Specify IP Fast Reroute |
|
Disable IP fast reroute Choices:
|
|
Specify per-prefix computation |
|
Specify per-link LFA exclusion or FRR LFA candidate information Choices:
|
|
Specify Per-link LFA exclusion information |
|
Specify Aggregated Ethernet interface(s) |
|
Specify Bridge-Group Virtual Interface |
|
Specify FastEthernet/IEEE 802.3 interface(s) |
|
Specify FiftyGigE/IEEE 802.3 interface(s) |
|
Specify FortyGigE/IEEE 802.3 interface(s) |
|
Specify FourHundredGigE/IEEE 802.3 interface(s) |
|
Specify GigabitEthernet/IEEE 802.3 interface(s) |
|
Specify HundredGigE/IEEE 802.3 interface(s) |
|
Specify MgmtEth/IEEE 802.3 interface(s) |
|
Specify Multilink network interface(s) |
|
Specify Network Virtualization Endpoint Interface(s) |
|
Specify Aggregated pos interface(s) |
|
Specify PWHE Ethernet Interface |
|
Specify PWHE VC11 IP Interworking Interface |
|
Specify Serial network interface(s) |
|
Specify SRP interface(s) |
|
Specify TenGigabitEthernet/IEEE 802.3 interface(s) |
|
Specify GRE/IPinIP Tunnel Interface(s) |
|
Specify IPSec Tunnel interface(s) |
|
MPLS Transport Protocol Tunnel interface |
|
Specify MPLS Traffic Engineering P2MP Tunnel interface(s) |
|
Specify TwentyFiveGigabitEthernet/IEEE 802.3 interface(s) |
|
Specify TwoHundredGigE/IEEE 802.3 interface(s) |
|
Enable/Disable backup selection from candidate-list only Choices:
|
|
Specify per-prefix computation |
|
Specify per_prefix LFA exclusion or FRR LFA candidate information Choices:
|
|
Specify Per-link LFA exclusion information |
|
Specify Aggregated Ethernet interface(s) |
|
Specify Bridge-Group Virtual Interface |
|
Specify FastEthernet/IEEE 802.3 interface(s) |
|
Specify FiftyGigE/IEEE 802.3 interface(s) |
|
Specify FortyGigE/IEEE 802.3 interface(s) |
|
Specify FourHundredGigE/IEEE 802.3 interface(s) |
|
Specify GigabitEthernet/IEEE 802.3 interface(s) |
|
Specify HundredGigE/IEEE 802.3 interface(s) |
|
Specify MgmtEth/IEEE 802.3 interface(s) |
|
Specify Multilink network interface(s) |
|
Specify Network Virtualization Endpoint Interface(s) |
|
Specify Aggregated pos interface(s) |
|
Specify PWHE Ethernet Interface |
|
Specify PWHE VC11 IP Interworking Interface |
|
Specify Serial network interface(s) |
|
Specify SRP interface(s) |
|
Specify TenGigabitEthernet/IEEE 802.3 interface(s) |
|
Specify GRE/IPinIP Tunnel Interface(s) |
|
Specify IPSec Tunnel interface(s) |
|
MPLS Transport Protocol Tunnel interface |
|
Specify MPLS Traffic Engineering P2MP Tunnel interface(s) |
|
Specify TwentyFiveGigabitEthernet/IEEE 802.3 interface(s) |
|
Specify TwoHundredGigE/IEEE 802.3 interface(s) |
|
Enable/Disable backup selection from candidate-list only Choices:
|
|
Enable/Disable flood reduction Choices:
|
|
Specify Time between HELLO packets |
|
Specify instance ID |
|
Enable/Disable MPLS LDP Sync Choices:
|
|
Enable/Disable ignoring of MTU in DBD packets Choices:
|
|
Specify Network type Choices:
|
|
NSSA settings for the area |
|
Originate default Type 7 LSA |
|
ospfv3 default metric |
|
Metric type for default routes |
|
Set nssa to default information originate Choices:
|
|
Do not send redistributed LSAs into NSSA area Choices:
|
|
Do not send summary LSAs into NSSA area Choices:
|
|
Configure area as NSSA Choices:
|
|
Translate LSA |
|
Translate from Type 7 to Type 5 |
|
Always translate LSAs Choices:
|
|
Specify limit size of OSPFv3 packets |
|
Enable/Disable routing updates on an interface Choices:
|
|
Hide all transit addresses on this interface Choices:
|
|
Specify Router priority |
|
Summarize routes matching address/mask (border routers only) |
|
IP in Prefix format (X:X::X/length) |
|
Advertise this range (default) Choices:
|
|
Specify user specified metric for this range |
|
DoNotAdvertise this range Choices:
|
|
Specify Delay between LSA retransmissions |
|
Settings for configuring the area as a stub |
|
Do not send summary LSA into stub area Choices:
|
|
Configure the area as a stub Choices:
|
|
Specify estimated time needed to send link-state update packet |
|
Define a virtual link |
|
Enable authentication |
|
Do not authenticate OSPFv3 packets Choices:
|
|
Specify IPSec AH authentication attributes |
|
Specify the type of algorithim Choices:
|
|
Specify key in cleartext form |
|
Specify key |
|
Specify key in encrypted form |
|
Specify the Security Parameter Index value |
|
Interval after which a neighbor is declared dead |
|
Encrypt and authenticate OSPFv3 packets |
|
Do not encrypt OSPFv3 packets Choices:
|
|
Specify IPSec ESP encryption and authentication |
|
Specify encryption parameters |
|
This specify the aes algorithim |
|
Specify the bit encryption for aes algorithim Choices:
|
|
Specify AES key in cleartext form |
|
Cleartext AES key |
|
Specify AES key in encrypted form |
|
This specify the des algorithim |
|
Specify AES key in cleartext form |
|
Cleartext AES key |
|
Specify AES key in encrypted form |
|
Specify null encryption attributes |
|
Specify authentication parameters |
|
Specify the type of algorithim Choices:
|
|
Specify key in cleartext form |
|
Specify key |
|
Specify key in encrypted form |
|
This specify the triple DES algorithim |
|
Specify 3DES key in cleartext form |
|
Cleartext 3DES key |
|
Specify 3DES key in encrypted form |
|
Specify the Security Parameter Index value |
|
Time between HELLO packets |
|
Router-ID of virtual link neighbor (A.B.C.D) |
|
Delay between LSA retransmissions |
|
Link state transmit delay |
|
Enable authentication |
|
Do not authenticate OSPFv3 packets Choices:
|
|
Specify IPSec AH authentication attributes |
|
Specify the type of algorithim Choices:
|
|
Specify key in cleartext form |
|
Specify key |
|
Specify key in encrypted form |
|
Specify the Security Parameter Index value |
|
Calculate ospfv3 interface cost according to bandwidth |
|
Assign ospfv3 cost based on interface type Choices:
|
|
Specify reference bandwidth in megabits per sec |
|
Configure BFD parameters |
|
Configure fast detection |
|
Enable fast detection only Choices:
|
|
Hold down neighbor session until BFD session is up Choices:
|
|
Hello interval in milli-seconds |
|
Detect multiplier |
|
Enable specific OSPFv3 feature |
|
Specify type7 nssa capability |
|
Prefer type7 externals over type5 Choices:
|
|
Translate type7 to type5 Choices:
|
|
Specify Interface cost |
|
Filter LSAs during synchronization and flooding |
|
Filter all outgoing LSA Choices:
|
|
Interval after which a neighbor is declared dead |
|
Control distribution of default information |
|
Always advertise default route Choices:
|
|
ospfv3 default metric |
|
ospfv3 metric type for default routes |
|
Apply route-policy to default-information origination |
|
Enable distribution of default route Choices:
|
|
Set tag for default route |
|
Set metric of redistributed routes |
|
Enable/Disable ospfv3 demand circuit Choices:
|
|
Define an administrative distance |
|
Administrative distance |
|
ospfv3 administrative distance |
|
Distance for external routes |
|
Distance for inter-area routes |
|
Distance for intra-area routes |
|
Filter prefixes to/from RIB |
|
Filter prefixes based on an IPv6 prefix-list |
|
Filter prefixes installed to RIB Choices:
|
|
Specify Prefix-list name |
|
Filter prefixes redistributed from RIB Choices:
|
|
Encrypt and authenticate OSPFv3 packets |
|
Do not encrypt OSPFv3 packets Choices:
|
|
Specify IPSec ESP encryption and authentication |
|
Specify encryption parameters |
|
This specify the aes algorithim |
|
Specify the bit encryption for aes algorithim Choices:
|
|
Specify AES key in cleartext form |
|
Cleartext AES key |
|
Specify AES key in encrypted form |
|
This specify the des algorithim |
|
Specify AES key in cleartext form |
|
Cleartext AES key |
|
Specify AES key in encrypted form |
|
Specify null encryption attributes |
|
Specify authentication parameters |
|
Specify the type of algorithim Choices:
|
|
Specify key in cleartext form |
|
Specify key |
|
Specify key in encrypted form |
|
This specify the triple DES algorithim |
|
Specify 3DES key in cleartext form |
|
Cleartext 3DES key |
|
Specify 3DES key in encrypted form |
|
Specify the Security Parameter Index value |
|
Specify IP Fast Reroute |
|
Disable IP fast reroute Choices:
|
|
Specify per-prefix computation |
|
Specify per-link LFA exclusion or FRR LFA candidate information Choices:
|
|
Specify Per-link LFA exclusion information |
|
Specify Aggregated Ethernet interface(s) |
|
Specify Bridge-Group Virtual Interface |
|
Specify FastEthernet/IEEE 802.3 interface(s) |
|
Specify FiftyGigE/IEEE 802.3 interface(s) |
|
Specify FortyGigE/IEEE 802.3 interface(s) |
|
Specify FourHundredGigE/IEEE 802.3 interface(s) |
|
Specify GigabitEthernet/IEEE 802.3 interface(s) |
|
Specify HundredGigE/IEEE 802.3 interface(s) |
|
Specify MgmtEth/IEEE 802.3 interface(s) |
|
Specify Multilink network interface(s) |
|
Specify Network Virtualization Endpoint Interface(s) |
|
Specify Aggregated pos interface(s) |
|
Specify PWHE Ethernet Interface |
|
Specify PWHE VC11 IP Interworking Interface |
|
Specify Serial network interface(s) |
|
Specify SRP interface(s) |
|
Specify TenGigabitEthernet/IEEE 802.3 interface(s) |
|
Specify GRE/IPinIP Tunnel Interface(s) |
|
Specify IPSec Tunnel interface(s) |
|
MPLS Transport Protocol Tunnel interface |
|
Specify MPLS Traffic Engineering P2MP Tunnel interface(s) |
|
Specify TwentyFiveGigabitEthernet/IEEE 802.3 interface(s) |
|
Specify TwoHundredGigE/IEEE 802.3 interface(s) |
|
Enable/Disable backup selection from candidate-list only Choices:
|
|
Specify per-prefix computation |
|
Specify per_prefix LFA exclusion or FRR LFA candidate information Choices:
|
|
Specify Per-link LFA exclusion information |
|
Specify Aggregated Ethernet interface(s) |
|
Specify Bridge-Group Virtual Interface |
|
Specify FastEthernet/IEEE 802.3 interface(s) |
|
Specify FiftyGigE/IEEE 802.3 interface(s) |
|
Specify FortyGigE/IEEE 802.3 interface(s) |
|
Specify FourHundredGigE/IEEE 802.3 interface(s) |
|
Specify GigabitEthernet/IEEE 802.3 interface(s) |
|
Specify HundredGigE/IEEE 802.3 interface(s) |
|
Specify MgmtEth/IEEE 802.3 interface(s) |
|
Specify Multilink network interface(s) |
|
Specify Network Virtualization Endpoint Interface(s) |
|
Specify Aggregated pos interface(s) |
|
Specify PWHE Ethernet Interface |
|
Specify PWHE VC11 IP Interworking Interface |
|
Specify Serial network interface(s) |
|
Specify SRP interface(s) |
|
Specify TenGigabitEthernet/IEEE 802.3 interface(s) |
|
Specify GRE/IPinIP Tunnel Interface(s) |
|
Specify IPSec Tunnel interface(s) |
|
MPLS Transport Protocol Tunnel interface |
|
Specify MPLS Traffic Engineering P2MP Tunnel interface(s) |
|
Specify TwentyFiveGigabitEthernet/IEEE 802.3 interface(s) |
|
Specify TwoHundredGigE/IEEE 802.3 interface(s) |
|
Enable/Disable backup selection from candidate-list only Choices:
|
|
Enable/Disable flood reduction Choices:
|
|
Enable Graceful-Restart |
|
Disable router’s helper support level Choices:
|
|
Maximum route lifetime following restart |
|
Minimum interval between Graceful Restarts |
|
Set graceful restart Choices:
|
|
Specify Time between HELLO packets |
|
Ignore MOSPF Type 6 LSA Choices:
|
|
Specify instance ID |
|
Log adjacency state changes |
|
Log all state changes Choices:
|
|
Disable log adjacency changes Choices:
|
|
Set log adjacency Choices:
|
|
Set OSPFv3 limits |
|
Specify limit for number of interfaces |
|
Specify limit for number of paths |
|
Specify limit for number of redistributed prefixes |
|
Enable/Disable MPLS LDP Sync Choices:
|
|
Enable/Disable ignoring of MTU in DBD packets Choices:
|
|
Specify Network type Choices:
|
|
Enable/Disable NSR for all VRFs in this process Choices:
|
|
Specify limit size of OSPFv3 packets |
|
Enable/Disable routing updates on an interface Choices:
|
|
Hide all transit addresses on this interface Choices:
|
|
Specify Router priority |
|
The OSPFv3 Process ID |
|
Gracefully shutdown the OSPFv3 protocol Choices:
|
|
Redistribute information from another routing Protocol |
|
Specify application routes |
|
OnePK Application name |
|
Specify metric for redistributed routes |
|
Specify OSPFv3 exterior metric type for redistributed routes |
|
Apply route policy to redistribution |
|
Set application route Choices:
|
|
Set tag for routes redistributed into OSPFv3 |
|
Specify bgp routes |
|
BGP process name |
|
Specify metric for redistributed routes |
|
Specify OSPFv3 exterior metric type for redistributed routes |
|
Specify preserve med of BGP routes |
|
Apply route policy to redistribution |
|
Set bgp route number Choices:
|
|
Set tag for routes redistributed into OSPFv3 |
|
Specify connected routes |
|
Specify metric for redistributed routes |
|
Specify OSPFv3 exterior metric type for redistributed routes |
|
Apply route policy to redistribution |
|
Set connected route Choices:
|
|
Set tag for routes redistributed into OSPFv3 |
|
Specify eigrp routes |
|
EIGRP process name |
|
Redistribution of EIGRP routes Choices:
|
|
Specify metric for redistributed routes |
|
Specify OSPFv3 exterior metric type for redistributed routes |
|
Apply route policy to redistribution |
|
Set bgp route number Choices:
|
|
Set tag for routes redistributed into OSPFv3 |
|
Specify IS-IS routes |
|
IS-IS name |
|
Specify IS-IS level routes Choices:
|
|
Specify metric for redistributed routes |
|
Specify OSPFv3 exterior metric type for redistributed routes |
|
Apply route policy to redistribution |
|
Set IS-IS route number Choices:
|
|
Set tag for routes redistributed into OSPFv3 |
|
Specify mobile routes |
|
Specify metric for redistributed routes |
|
Specify OSPFv3 exterior metric type for redistributed routes |
|
Apply route policy to redistribution |
|
Set mobile route number Choices:
|
|
Set tag for routes redistributed into OSPFv3 |
|
Specify ospfv3 routes |
|
OSPFv3 process name |
|
Redistribution of OSPFv3 routes |
|
Redistribute OSPFv3 external routes Choices:
|
|
Redistribute OSPFv3 internal routes Choices:
|
|
Redistribute NSSA OSPFv3 external routes Choices:
|
|
Specify metric for redistributed routes |
|
Specify OSPFv3 exterior metric type for redistributed routes |
|
Apply route policy to redistribution |
|
Set ospfv3 route number Choices:
|
|
Set tag for routes redistributed into OSPFv3 |
|
Specify static routes |
|
Specify metric for redistributed routes |
|
Specify OSPFv3 exterior metric type for redistributed routes |
|
Apply route policy to redistribution |
|
Set static route Choices:
|
|
Set tag for routes redistributed into OSPFv3 |
|
Specify subscriber routes |
|
Specify metric for redistributed routes |
|
Specify OSPFv3 exterior metric type for redistributed routes |
|
Apply route policy to redistribution |
|
Set static route Choices:
|
|
Set tag for routes redistributed into OSPFv3 |
|
Delay between LSA retransmissions |
|
ospfv3 router-id in IPv4 address format (A.B.C.D) |
|
Specify SPF configuration |
|
Disable SPF prefix priority Choices:
|
|
Specify the route-policy to prioritize route install |
|
Specify name of the policy |
|
Specify parameter values for the policy () |
|
Enter stub router configuration submode |
|
Modify self originated router LSAs |
|
Advertise LSAs with specified type Choices:
|
|
Force ospfv3 stub router mode unconditionally Choices:
|
|
Override External LSA metric in stub router mode |
|
Metric to use while in stub router mode |
|
Set external lsa Choices:
|
|
Set maximum metric for stub links in stub router mode Choices:
|
|
Enter stub router mode on ospfv3 process migration |
|
Enter stub router mode on ospfv3 process restart |
|
Enter stub router mode on startup |
|
Time in seconds to stay in stub router mode |
|
Exit stub router mode when BGP converges Choices:
|
|
Enter stub router mode on RP switchover |
|
Override Summary LSA metric in stub router mode |
|
Metric to use while in stub router mode |
|
Enable summary LSA Choices:
|
|
Configure IP address summaries |
|
Suppress routes that match the specified prefix/mask pair Choices:
|
|
IP summary address/mask (A.B.C.D/prefix) |
|
Set tag |
|
Adjust routing timers |
|
Specify LSA arrival timers |
|
Specify pacing timers |
|
Flood pacing timer |
|
LSA group pacing timer |
|
LSA group pacing timer |
|
Adjust throttle timers |
|
Specify LSA throttle timers |
|
Delay to generate first occurrence of LSA in milliseconds |
|
Minimum delay between originating the same LSA in milliseconds |
|
Specify SPF throttle timers |
|
Delay to generate first occurrence of SPF in ms |
|
Minimum delay between originating the same SPF in ms |
|
Specify OSPF tracing options |
|
Delete existing buffer and create one with N entries |
|
Specify trace entry |
|
Estimated time needed to send link-state update packet |
|
This option is used only with state parsed. The value of this option should be the output received from the IOS-XR device by executing the command show running-config router ospfv3. The state parsed reads the configuration from |
|
The state the configuration should be left in Choices:
|
Notes
Note
This module works with connection
network_cli
. See the IOS-XR Platform Options
Examples
# Using merged
# Before state:
# -------------
#
# RP/0/RP0/CPU0:anton#show running-config router ospfv3
# Thu Jun 11 15:54:44.569 UTC
# % No such configuration item(s)
#
- name: Merge provided OSPFv3 configuration with the existing configuration
cisco.iosxr.iosxr_ospfv3:
config:
processes:
- process_id: 27
areas:
- area_id: 10
hello_interval: 2
- process_id: 26
authentication:
disable: true
- process_id: 10
areas:
- area_id: 11
default_cost: 5
cost: 11
- area_id: 22
default_cost: 6
- process_id: 30
areas:
- area_id: 11
default_cost: 5
- area_id: 22
default_cost: 6
cost: 2
default_metric: 10
transmit_delay: 2
hello_interval: 1
dead_interval: 2
retransmit_interval: 2
packet_size: 577
priority: 1
router_id: '2.2.2.2'
demand_circuit: true
mtu_ignore: true
state: merged
#
#
# ------------------------
# Module Execution Result
# ------------------------
#
# "before": {}
#
# "commands": [
# "router ospfv3 10",
# "area 11 default-cost 5",
# "area 11 cost 11",
# "area 22 default-cost 6",
# "router ospfv3 26",
# "authentication disable",
# "router ospfv3 27",
# "area 10 hello-interval 2",
# "router ospfv3 30",
# "cost 2",
# "priority 1",
# "default-metric 10",
# "router-id 2.2.2.2",
# "demand-circuit",
# "packet-size 577",
# "transmit-delay 2",
# "dead-interval 2",
# "hello-interval 1",
# "retransmit-interval 2",
# "mtu-ignore",
# "area 11 default-cost 5",
# "area 22 default-cost 6"
# ]
#
# "after": {
# "processes": [
# {
# "areas": [
# {
# "area_id": "11",
# "cost": 11,
# "default_cost": 5
# },
# {
# "area_id": "22",
# "default_cost": 6
# }
# ],
# "process_id": "10"
# },
# {
# "authentication": {
# "disable": true
# },
# "process_id": "26"
# },
# {
# "areas": [
# {
# "area_id": "10",
# "hello_interval": 2
# }
# ],
# "process_id": "27"
# },
# {
# "areas": [
# {
# "area_id": "11",
# "default_cost": 5
# },
# {
# "area_id": "22",
# "default_cost": 6
# }
# ],
# "cost": 2,
# "dead_interval": 2,
# "default_metric": 10,
# "demand_circuit": true,
# "hello_interval": 1,
# "mtu_ignore": true,
# "packet_size": 577,
# "priority": 1,
# "process_id": "30",
# "retransmit_interval": 2,
# "router_id": "2.2.2.2",
# "transmit_delay": 2
# }
# ]
# }
#
#
# ------------
# After state
# ------------
#
# RP/0/RP0/CPU0:anton#show running-config router ospfv3
# router ospfv3 10
# area 11
# cost 11
# default-cost 5
# !
# area 22
# default-cost 6
# !
# !
# router ospfv3 26
# authentication disable
# !
# router ospfv3 27
# area 10
# hello-interval 2
# !
# area 20
# !
# area 30
# !
# !
# router ospfv3 30
# cost 2
# priority 1
# mtu-ignore
# packet-size 577
# dead-interval 2
# retransmit-interval 2
# demand-circuit
# hello-interval 1
# transmit-delay 2
# router-id 2.2.2.2
# default-metric 10
# area 11
# default-cost 5
# !
# area 22
# default-cost 6
# !
# router ospfv3 10
# area 11
# cost 11
# default-cost 5
# !
# area 22
# default-cost 6
# !
# !
# router ospfv3 26
# authentication disable
# !
# router ospfv3 27
# area 10
# hello-interval 2
# !
# area 20
# !
# area 30
# !
# !
# router ospfv3 30
# cost 2
# priority 1
# mtu-ignore
# packet-size 577
# dead-interval 2
# retransmit-interval 2
# demand-circuit
# hello-interval 1
# transmit-delay 2
# router-id 2.2.2.2
# default-metric 10
# area 11
# default-cost 5
# !
# area 22
# default-cost 6
# !
# !
# Using replaced
#
# ------------
# Before state
# ------------
#
#
# RP/0/RP0/CPU0:anton#show running-config router ospf
# router ospfv3 10
# area 11
# cost 11
# default-cost 5
# !
# area 22
# default-cost 6
# !
# !
# router ospfv3 26
# authentication disable
# !
# router ospfv3 27
# area 10
# hello-interval 2
# !
# area 20
# !
# area 30
# !
# !
# router ospfv3 30
# cost 2
# priority 1
# mtu-ignore
# packet-size 577
# dead-interval 2
# retransmit-interval 2
# demand-circuit
# hello-interval 1
# transmit-delay 2
# router-id 2.2.2.2
# default-metric 10
# area 11
# default-cost 5
# !
# area 22
# default-cost 6
# !
# router ospfv3 10
# area 11
# cost 11
# default-cost 5
# !
# area 22
# default-cost 6
# !
# !
# router ospfv3 26
# authentication disable
# !
# router ospfv3 27
# area 10
# hello-interval 2
# !
# area 20
# !
# area 30
# !
# !
# router ospfv3 30
# cost 2
# priority 1
# mtu-ignore
# packet-size 577
# dead-interval 2
# retransmit-interval 2
# demand-circuit
# hello-interval 1
# transmit-delay 2
# router-id 2.2.2.2
# default-metric 10
# area 11
# default-cost 5
# !
# area 22
# default-cost 6
# !
# !
- name: Replace OSPFv3 routes configurations from the device
cisco.iosxr.iosxr_ospfv3:
config:
processes:
- process_id: 27
areas:
- area_id: 10
hello_interval: 2
- area_id: 20
cost: 2
default_cost: 2
- process_id: 26
authentication:
disable: true
state: replaced
#
#
# ------------------------
# Module Execution Result
# ------------------------
#
# "before": {
# "processes": [
# {
# "areas": [
# {
# "area_id": "11",
# "cost": 11,
# "default_cost": 5
# },
# {
# "area_id": "22",
# "default_cost": 6
# }
# ],
# "process_id": "10"
# },
# {
# "authentication": {
# "disable": true
# },
# "process_id": "26"
# },
# {
# "areas": [
# {
# "area_id": "10",
# "hello_interval": 2
# }
# ],
# "process_id": "27"
# },
# {
# "areas": [
# {
# "area_id": "11",
# "default_cost": 5
# },
# {
# "area_id": "22",
# "default_cost": 6
# }
# ],
# "cost": 2,
# "dead_interval": 2,
# "default_metric": 10,
# "demand_circuit": true,
# "hello_interval": 1,
# "mtu_ignore": true,
# "packet_size": 577,
# "priority": 1,
# "process_id": "30",
# "retransmit_interval": 2,
# "router_id": "2.2.2.2",
# "transmit_delay": 2
# }
# ]
# }
#
# "commands": [
# "router ospfv3 27",
# "area 20 default-cost 2",
# "area 20 cost 2"
# ]
#
# "after": {
# "processes": [
# {
# "areas": [
# {
# "area_id": "11",
# "cost": 11,
# "default_cost": 5
# },
# {
# "area_id": "22",
# "default_cost": 6
# }
# ],
# "process_id": "10"
# },
# {
# "authentication": {
# "disable": true
# },
# "process_id": "26"
# },
# {
# "areas": [
# {
# "area_id": "10",
# "hello_interval": 2
# },
# {
# "area_id": "20",
# "cost": 2,
# "default_cost": 2
# }
# ],
# "process_id": "27"
# },
# {
# "areas": [
# {
# "area_id": "11",
# "default_cost": 5
# },
# {
# "area_id": "22",
# "default_cost": 6
# }
# ],
# "cost": 2,
# "dead_interval": 2,
# "default_metric": 10,
# "demand_circuit": true,
# "hello_interval": 1,
# "mtu_ignore": true,
# "packet_size": 577,
# "priority": 1,
# "process_id": "30",
# "retransmit_interval": 2,
# "router_id": "2.2.2.2",
# "transmit_delay": 2
# }
# ]
# }
#
#
# -----------
# After state
# -----------
#
# RP/0/RP0/CPU0:anton(config)#do show running-config router ospfv3
# router ospfv3 10
# area 11
# cost 11
# default-cost 5
# !
# area 22
# default-cost 6
# !
# !
# router ospfv3 26
# authentication disable
# !
# router ospfv3 27
# area 10
# hello-interval 2
# !
# area 20
# cost 2
# default-cost 2
# !
# area 30
# !
# !
# router ospfv3 30
# cost 2
# priority 1
# mtu-ignore
# packet-size 577
# dead-interval 2
# retransmit-interval 2
# demand-circuit
# hello-interval 1
# transmit-delay 2
# router-id 2.2.2.2
# default-metric 10
# area 11
# default-cost 5
# !
# area 22
# default-cost 6
# !
# !
- name: Override existing OSPFv3 configurations from the device
cisco.iosxr.iosxr_ospfv3:
config:
processes:
- process_id: 27
areas:
- area_id: 10
hello_interval: 2
authentication:
disable: true
- area_id: 20
cost: 2
default_cost: 2
authentication:
disable: true
- process_id: 26
areas:
- area_id: 10
hello_interval: 2
authentication:
disable: true
state: overridden
#
#
# ------------------------
# Module Execution Result
# ------------------------
#
# "before": {
# "processes": [
# {
# "areas": [
# {
# "area_id": "11",
# "cost": 11,
# "default_cost": 5
# },
# {
# "area_id": "22",
# "default_cost": 6
# }
# ],
# "process_id": "10"
# },
# {
# "authentication": {
# "disable": true
# },
# "process_id": "26"
# },
# {
# "areas": [
# {
# "area_id": "10",
# "hello_interval": 2
# },
# {
# "area_id": "20",
# "cost": 2,
# "default_cost": 2
# }
# ],
# "process_id": "27"
# },
# {
# "areas": [
# {
# "area_id": "11",
# "default_cost": 5
# },
# {
# "area_id": "22",
# "default_cost": 6
# }
# ],
# "cost": 2,
# "dead_interval": 2,
# "default_metric": 10,
# "demand_circuit": true,
# "hello_interval": 1,
# "mtu_ignore": true,
# "packet_size": 577,
# "priority": 1,
# "process_id": "30",
# "retransmit_interval": 2,
# "router_id": "2.2.2.2",
# "transmit_delay": 2
# }
# ]
# }
#
# "commands": [
# "router ospfv3 10",
# "no area 11 default-cost 5",
# "no area 11 cost 11",
# "no area 22 default-cost 6",
# "router ospfv3 30",
# "no cost 2",
# "no priority 1",
# "no default-metric 10",
# "no router-id 2.2.2.2",
# "no demand-circuit",
# "no packet-size 577",
# "no transmit-delay 2",
# "no dead-interval 2",
# "no hello-interval 1",
# "no retransmit-interval 2",
# "no mtu-ignore",
# "no area 11 default-cost 5",
# "no area 22 default-cost 6",
# "router ospfv3 26",
# "area 10 hello-interval 4"
# ]
#
# "after": {
# "processes": [
# {
# "process_id": "10"
# },
# {
# "areas": [
# {
# "area_id": "10",
# "hello_interval": 4
# }
# ],
# "authentication": {
# "disable": true
# },
# "process_id": "26"
# },
# {
# "areas": [
# {
# "area_id": "10",
# "hello_interval": 2
# },
# {
# "area_id": "20",
# "cost": 2,
# "default_cost": 2
# }
# ],
# "process_id": "27"
# },
# {
# "process_id": "30"
# }
# ]
# }
#
#
# -----------
# After state
# -----------
#
# RP/0/RP0/CPU0:anton#show running-config router ospfv3
# router ospfv3 10
# area 11
# !
# area 22
# !
# !
# router ospfv3 26
# authentication disable
# area 10
# hello-interval 4
# !
# !
# router ospfv3 27
# area 10
# hello-interval 2
# !
# area 20
# cost 2
# default-cost 2
# !
# area 30
# !
# !
# router ospfv3 30
# area 11
# !
# area 22
# !
# !
# Using deleted
#
# ------------
# Before state
# ------------
#
#
# RP/0/RP0/CPU0:anton#show running-config router ospfv3
# router ospfv3 10
# area 11
# !
# area 22
# !
# !
# router ospfv3 26
# authentication disable
# area 10
# hello-interval 4
# !
# !
# router ospfv3 27
# area 10
# hello-interval 2
# !
# area 20
# cost 2
# default-cost 2
# !
# area 30
# !
# !
# router ospfv3 30
# area 11
# !
# area 22
# !
# !
- name: Deleted existing OSPFv3 configurations from the device
cisco.iosxr.iosxr_ospfv3:
config:
processes:
- process_id: '10'
- process_id: '26'
- process_id: '27'
- process_id: '30'
state: deleted
#
#
# ------------------------
# Module Execution Result
# ------------------------
#
# "before": {
# "processes": [
# {
# "process_id": "10"
# },
# {
# "areas": [
# {
# "area_id": "10",
# "hello_interval": 4
# }
# ],
# "authentication": {
# "disable": true
# },
# "process_id": "26"
# },
# {
# "areas": [
# {
# "area_id": "10",
# "hello_interval": 2
# },
# {
# "area_id": "20",
# "cost": 2,
# "default_cost": 2
# }
# ],
# "process_id": "27"
# },
# {
# "process_id": "30"
# }
# ]
# },
#
# "commands": [
# "router ospfv3 26",
# "no authentication disable",
# "no area 10 hello-interval 4",
# "router ospfv3 27",
# "no area 10 hello-interval 2",
# "no area 20 default-cost 2",
# "no area 20 cost 2"
# ]
#
# "after": {
# "processes": [
# {
# "process_id": "10"
# },
# {
# "process_id": "26"
# },
# {
# "process_id": "27"
# },
# {
# "process_id": "30"
# }
# ]
# }
#
#
# -----------
# After state
# -----------
#
# RP/0/RP0/CPU0:anton(config)#show running-config router ospfv3
# router ospfv3 10
# !
# router ospfv3 26
# !
# router ospfv3 27
# !
# router ospfv3 30
# !
# Using parsed
# parsed.cfg
# ------------
# router ospfv3 10
# area 11
# cost 11
# default-cost 5
# !
# area 22
# default-cost 6
# !
# !
# router ospfv3 26
# authentication disable
# !
# router ospfv3 27
# area 10
# hello-interval 2
# !
# !
# router ospfv3 30
# router-id 2.2.2.2
# cost 2
# packet-size 577
# priority 1
# mtu-ignore
# dead-interval 2
# retransmit-interval 2
# demand-circuit
# hello-interval 1
# transmit-delay 2
# default-metric 10
# area 11
# default-cost 5
# !
# area 22
# default-cost 6
# !
# !
- name: Parsed the device configuration to get output commands
cisco.iosxr.iosxr_ospfv3:
running_config: "{{ lookup('file', './parsed.cfg') }}"
state: parsed
#
#
# -------------------------
# Module Execution Result
# -------------------------
#
#
# "parsed": {
# "processes": [
# {
# "areas": [
# {
# "area_id": "11",
# "cost": 11,
# "default_cost": 5
# },
# {
# "area_id": "22",
# "default_cost": 6
# }
# ],
# "process_id": "10"
# },
# {
# "authentication": {
# "disable": true
# },
# "process_id": "26"
# },
# {
# "areas": [
# {
# "area_id": "10",
# "hello_interval": 2
# }
# ],
# "process_id": "27"
# },
# {
# "areas": [
# {
# "area_id": "11",
# "default_cost": 5
# },
# {
# "area_id": "22",
# "default_cost": 6
# }
# ],
# "cost": 2,
# "dead_interval": 2,
# "default_metric": 10,
# "demand_circuit": true,
# "hello_interval": 1,
# "mtu_ignore": true,
# "packet_size": 577,
# "priority": 1,
# "process_id": "30",
# "retransmit_interval": 2,
# "router_id": "2.2.2.2",
# "transmit_delay": 2
# }
# ]
# }
#
# Using rendered
#
#
- name: Render the commands for provided configuration
cisco.iosxr.iosxr_ospfv3:
config:
processes:
- process_id: 27
areas:
- area_id: 10
hello_interval: 2
- process_id: 26
authentication:
disable: true
- process_id: 10
areas:
- area_id: 11
default_cost: 5
cost: 11
- area_id: 22
default_cost: 6
- process_id: 30
areas:
- area_id: 11
default_cost: 5
- area_id: 22
default_cost: 6
cost: 2
default_metric: 10
transmit_delay: 2
hello_interval: 1
dead_interval: 2
retransmit_interval: 2
packet_size: 577
priority: 1
router_id: '2.2.2.2'
demand_circuit: true
mtu_ignore: true
state: rendered
#
#
# -------------------------
# Module Execution Result
# -------------------------
#
#
# "rendered": [
# "router ospfv3 27",
# "area 10 hello-interval 2",
# "router ospfv3 26",
# "authentication disable",
# "router ospfv3 10",
# "area 11 default-cost 5",
# "area 11 cost 11",
# "area 22 default-cost 6",
# "router ospfv3 30",
# "cost 2",
# "priority 1",
# "default-metric 10",
# "router-id 2.2.2.2",
# "demand-circuit",
# "packet-size 577",
# "transmit-delay 2",
# "dead-interval 2",
# "hello-interval 1",
# "retransmit-interval 2",
# "mtu-ignore",
# "area 11 default-cost 5",
# "area 22 default-cost 6"
# ]
# Using gathered
#
# Before state:
# -------------
#
# RP/0/RP0/CPU0:anton#show running-config router ospf
# router ospfv3 10
# area 11
# cost 11
# default-cost 5
# !
# area 22
# default-cost 6
# !
# !
# router ospfv3 26
# authentication disable
# area 10
# !
# !
# router ospfv3 27
# area 10
# hello-interval 2
# !
# area 20
# !
# area 30
# !
# !
# router ospfv3 30
# cost 2
# priority 1
# mtu-ignore
# packet-size 577
# dead-interval 2
# retransmit-interval 2
# demand-circuit
# hello-interval 1
# transmit-delay 2
# router-id 2.2.2.2
# default-metric 10
# area 11
# default-cost 5
# !
# area 22
# default-cost 6
# !
# !
- name: Gather ospfv3 routes configuration
cisco.iosxr.iosxr_ospfv3:
state: gathered
#
#
# -------------------------
# Module Execution Result
# -------------------------
#
# "gathered": {
# "processes": [
# {
# "areas": [
# {
# "area_id": "11",
# "cost": 11,
# "default_cost": 5
# },
# {
# "area_id": "22",
# "default_cost": 6
# }
# ],
# "process_id": "10"
# },
# {
# "authentication": {
# "disable": true
# },
# "process_id": "26"
# },
# {
# "areas": [
# {
# "area_id": "10",
# "hello_interval": 2
# }
# ],
# "process_id": "27"
# },
# {
# "areas": [
# {
# "area_id": "11",
# "default_cost": 5
# },
# {
# "area_id": "22",
# "default_cost": 6
# }
# ],
# "cost": 2,
# "dead_interval": 2,
# "default_metric": 10,
# "demand_circuit": true,
# "hello_interval": 1,
# "mtu_ignore": true,
# "packet_size": 577,
# "priority": 1,
# "process_id": "30",
# "retransmit_interval": 2,
# "router_id": "2.2.2.2",
# "transmit_delay": 2
# }
# ]
# }
#
Authors
Rohit Thakur (@rohitthakur2590)