cisco.iosxr.iosxr_ospfv3 模块 – 用于配置 OSPFv3 的资源模块。

注意

此模块是 cisco.iosxr 集合(版本 10.2.2)的一部分。

如果您正在使用 ansible 包,则可能已经安装了此集合。它不包含在 ansible-core 中。要检查是否已安装,请运行 ansible-galaxy collection list

要安装它,请使用:ansible-galaxy collection install cisco.iosxr

要在 playbook 中使用它,请指定:cisco.iosxr.iosxr_ospfv3

cisco.iosxr 1.1.0 中的新功能

概要

  • 此模块管理运行 Cisco IOS-XR 设备的全局 ospfv3 配置

参数

参数

注释

config

字典

ospfv3 进程配置的列表

processes

列表 / 元素=字典

ospfv3 实例配置的列表

address_family_unicast

布尔值

为 ipv4 地址族启用单播拓扑

选择

  • false

  • true

areas

列表 / 元素=字典

配置 ospfv3 区域的属性

area_id

字符串 / 必需

作为 IP 地址或整数的区域 ID

authentication

字典

启用身份验证

disable

布尔值

不验证 OSPFv3 数据包

选择

  • false ← (默认)

  • true

ipsec

字典

指定 IPSec AH 身份验证属性

algorithim_type

字符串

指定算法类型

选择

  • "md5"

  • "sha1"

clear_key

字符串

以明文形式指定密钥

key

字符串

指定密钥

password_key

字符串

以加密形式指定密钥

spi

整数

指定安全参数索引值

bfd

字典

配置 BFD 参数

fast_detect

字典

配置快速检测

set

布尔值

仅启用快速检测

选择

  • false

  • true

strict_mode

布尔值

保持邻居会话,直到 BFD 会话启动

选择

  • false

  • true

minimum_interval

整数

以毫秒为单位的 Hello 间隔

multiplier

整数

检测乘数

cost

整数

接口成本

database_filter

字典

在同步和洪泛期间过滤 LSA

all_outgoing_lsa

布尔值

过滤所有传出的 LSA

选择

  • false

  • true

dead_interval

整数

声明邻居死亡后的间隔

default_cost

整数

设置 NSSA/stub 区域的摘要默认成本。Stub 的通告外部路由指标

demand_circuit

布尔值

启用/禁用 ospfv3 按需电路

选择

  • false

  • true

distrinbute_rib_prefix_list_name

字符串

在同步和洪泛期间过滤 LSA

encryption

字典

加密和验证 OSPFv3 数据包

disable

布尔值

不加密 OSPFv3 数据包

选择

  • false ← (默认)

  • true

ipsec

字典

指定 IPSec ESP 加密和身份验证

esp

字典

指定加密参数

aes

字典

这指定 aes 算法

algorithim_type

字符串

指定 aes 算法的位加密

选择

  • "192"

  • "256"

clear_key

字符串

以明文形式指定 AES 密钥

key

字符串

明文 AES 密钥

password_key

字符串

以加密形式指定 AES 密钥

des

字典

这指定 des 算法

clear_key

字符串

以明文形式指定 AES 密钥

key

字符串

明文 AES 密钥

password_key

字符串

以加密形式指定 AES 密钥

null_encryption

字典

指定空加密属性

authentication

字典

指定身份验证参数

algorithim_type

字符串

指定算法类型

选择

  • "md5"

  • "sha1"

clear_key

字符串

以明文形式指定密钥

key

字符串

指定密钥

password_key

字符串

以加密形式指定密钥

triple_des

字典

这指定三重 DES 算法

clear_key

字符串

以明文形式指定 3DES 密钥

key

字符串

明文 3DES 密钥

password_key

字符串

以加密形式指定 3DES 密钥

spi

整数

指定安全参数索引值

fast_reroute

字典

指定 IP 快速重路由

disabled

布尔值

禁用 IP 快速重路由

选择

  • false

  • true

字典

指定每个前缀计算

字符串

指定每个链路的 LFA 排除或 FRR LFA 候选信息

选择

  • "exclude"

  • "lfa_candidate"

字典

指定每个链路的 LFA 排除信息

列表 / 元素=整数

指定聚合以太网接口

列表 / 元素=整数

指定桥组虚拟接口

列表 / 元素=字符串

指定 FastEthernet/IEEE 802.3 接口

列表 / 元素=字符串

指定 FiftyGigE/IEEE 802.3 接口

列表 / 元素=字符串

指定 FortyGigE/IEEE 802.3 接口

列表 / 元素=字符串

指定 FourHundredGigE/IEEE 802.3 接口

列表 / 元素=字符串

指定 GigabitEthernet/IEEE 802.3 接口

列表 / 元素=字符串

指定 HundredGigE/IEEE 802.3 接口

列表 / 元素=字符串

指定 MgmtEth/IEEE 802.3 接口

列表 / 元素=字符串

指定多链路网络接口

列表 / 元素=整数

指定网络虚拟化端点接口

列表 / 元素=整数

指定聚合 pos 接口

列表 / 元素=整数

指定 PWHE 以太网接口

列表 / 元素=整数

指定 PWHE VC11 IP 互通接口

列表 / 元素=字符串

指定串行网络接口

列表 / 元素=字符串

指定 SRP 接口

列表 / 元素=字符串

指定 TenGigabitEthernet/IEEE 802.3 接口

列表 / 元素=整数

指定 GRE/IPinIP 隧道接口

列表 / 元素=整数

指定 IPSec 隧道接口

整数

MPLS 传输协议隧道接口

列表 / 元素=整数

指定 MPLS 流量工程 P2MP 隧道接口

列表 / 元素=字符串

指定 25 千兆以太网/IEEE 802.3 接口

列表 / 元素=字符串

指定 200 千兆以太网/IEEE 802.3 接口

布尔值

仅启用/禁用从候选列表中选择备份

选择

  • false

  • true

per_prefix

字典

指定每个前缀计算

information_type

字符串

指定 per_prefix LFA 排除或 FRR LFA 候选信息

选择

  • "exclude"

  • "lfa_candidate"

interface

字典

指定每个链路的 LFA 排除信息

bundle_ether

列表 / 元素=整数

指定聚合以太网接口

bvi

列表 / 元素=整数

指定桥组虚拟接口

fast_ethernet

列表 / 元素=字符串

指定 FastEthernet/IEEE 802.3 接口

fiftygige

列表 / 元素=字符串

指定 FiftyGigE/IEEE 802.3 接口

fortygige

列表 / 元素=字符串

指定 FortyGigE/IEEE 802.3 接口

fourhundredgige

列表 / 元素=字符串

指定 FourHundredGigE/IEEE 802.3 接口

gigabitethernet

列表 / 元素=字符串

指定 GigabitEthernet/IEEE 802.3 接口

hundredgige

列表 / 元素=字符串

指定 HundredGigE/IEEE 802.3 接口

mgmteth

列表 / 元素=字符串

指定 MgmtEth/IEEE 802.3 接口

列表 / 元素=字符串

指定多链路网络接口

nve

列表 / 元素=整数

指定网络虚拟化端点接口

pos_int

列表 / 元素=整数

指定聚合 pos 接口

pw_ether

列表 / 元素=整数

指定 PWHE 以太网接口

pw_iw

列表 / 元素=整数

指定 PWHE VC11 IP 互通接口

serial

列表 / 元素=字符串

指定串行网络接口

srp

列表 / 元素=字符串

指定 SRP 接口

tengige

列表 / 元素=字符串

指定 TenGigabitEthernet/IEEE 802.3 接口

tunnel_ip

列表 / 元素=整数

指定 GRE/IPinIP 隧道接口

tunnel_ipsec

列表 / 元素=整数

指定 IPSec 隧道接口

tunnel_mpls

整数

MPLS 传输协议隧道接口

tunnel_mte

列表 / 元素=整数

指定 MPLS 流量工程 P2MP 隧道接口

twentyfivegige

列表 / 元素=字符串

指定 25 千兆以太网/IEEE 802.3 接口

twohundredgige

列表 / 元素=字符串

指定 200 千兆以太网/IEEE 802.3 接口

use_candidate_only

布尔值

仅启用/禁用从候选列表中选择备份

选择

  • false

  • true

flood_reduction

布尔值

启用/禁用洪泛抑制

选择

  • false

  • true

hello_interval

整数

指定 HELLO 数据包的发送间隔

instance_id

整数

指定实例 ID

mpls_ldp_sync

布尔值

启用/禁用 MPLS LDP 同步

选择

  • false

  • true

mtu_ignore

布尔值

启用/禁用在 DBD 数据包中忽略 MTU

选择

  • false

  • true

network

字符串

指定网络类型

选择

  • "broadcast"

  • "non-broadcast"

  • "point-to-multipoint"

  • "point-to-point"

nssa

字典

区域的 NSSA 设置

default_information_originate

字典

发起默认的 Type 7 LSA

metric

整数

ospfv3 默认度量值

metric_type

整数

默认路由的度量类型

set

布尔值

将 nssa 设置为发起默认信息

选择

  • false

  • true

no_redistribution

布尔值

不将重分发的 LSA 发送到 NSSA 区域

选择

  • false

  • true

no_summary

布尔值

不将汇总 LSA 发送到 NSSA 区域

选择

  • false

  • true

set

布尔值

将区域配置为 NSSA

选择

  • false

  • true

translate

字典

转换 LSA

type7

字典

从 Type 7 转换为 Type 5

always

布尔值 / 必需

始终转换 LSA

选择

  • false

  • true

packet_size

整数

指定 OSPFv3 数据包的大小限制

passive

布尔值

启用/禁用接口上的路由更新

选择

  • false

  • true

prefix_suppression

布尔值

隐藏此接口上的所有传输地址

选择

  • false

  • true

priority

整数

指定路由器优先级

ranges

列表 / 元素=字典

汇总匹配地址/掩码的路由(仅限边界路由器)

address

字符串 / 必需

前缀格式的 IP (X:X::X/长度)

advertise

布尔值

通告此范围(默认)

选择

  • false

  • true

cost

整数

为此范围指定用户指定的度量值

not_advertise

布尔值

不通告此范围

选择

  • false

  • true

retransmit_interval

整数

指定 LSA 重传之间的延迟

stub

字典

用于将区域配置为存根的设置

no_summary

布尔值

不将汇总 LSA 发送到存根区域

选择

  • false

  • true

set

布尔值

将区域配置为存根

选择

  • false

  • true

transmit_delay

整数

指定发送链路状态更新数据包所需的估计时间

列表 / 元素=字典

定义虚拟链路

字典

启用身份验证

布尔值

不验证 OSPFv3 数据包

选择

  • false ← (默认)

  • true

字典

指定 IPSec AH 身份验证属性

字符串

指定算法类型

选择

  • "md5"

  • "sha1"

字符串

以明文形式指定密钥

字符串

指定密钥

字符串

以加密形式指定密钥

整数

指定安全参数索引值

整数

声明邻居死亡后的间隔

字典

加密和验证 OSPFv3 数据包

布尔值

不加密 OSPFv3 数据包

选择

  • false ← (默认)

  • true

字典

指定 IPSec ESP 加密和身份验证

字典

指定加密参数

字典

这指定 aes 算法

字符串

指定 aes 算法的位加密

选择

  • "192"

  • "256"

字符串

以明文形式指定 AES 密钥

字符串

明文 AES 密钥

字符串

以加密形式指定 AES 密钥

字典

这指定 des 算法

字符串

以明文形式指定 AES 密钥

字符串

明文 AES 密钥

字符串

以加密形式指定 AES 密钥

字典

指定空加密属性

字典

指定身份验证参数

字符串

指定算法类型

选择

  • "md5"

  • "sha1"

字符串

以明文形式指定密钥

字符串

指定密钥

字符串

以加密形式指定密钥

字典

这指定三重 DES 算法

字符串

以明文形式指定 3DES 密钥

字符串

明文 3DES 密钥

字符串

以加密形式指定 3DES 密钥

整数

指定安全参数索引值

整数

HELLO 数据包的发送间隔

字符串 / 必需

虚拟链路邻居的路由器 ID (A.B.C.D)

整数

LSA 重传之间的延迟

整数

链路状态传输延迟

authentication

字典

启用身份验证

disable

布尔值

不验证 OSPFv3 数据包

选择

  • false ← (默认)

  • true

ipsec

字典

指定 IPSec AH 身份验证属性

algorithim_type

字符串

指定算法类型

选择

  • "md5"

  • "sha1"

clear_key

字符串

以明文形式指定密钥

key

字符串

指定密钥

password_key

字符串

以加密形式指定密钥

spi

整数

指定安全参数索引值

auto_cost

字典

根据带宽计算 ospfv3 接口成本

disable

布尔值

根据接口类型分配 ospfv3 成本

选择

  • false

  • true

reference_bandwidth

整数

指定参考带宽,单位为兆比特/秒

bfd

字典

配置 BFD 参数

fast_detect

字典

配置快速检测

set

布尔值

仅启用快速检测

选择

  • false

  • true

strict_mode

布尔值

保持邻居会话,直到 BFD 会话启动

选择

  • false

  • true

minimum_interval

整数

以毫秒为单位的 Hello 间隔

multiplier

整数

检测乘数

capability

字典

启用特定的 OSPFv3 功能

type7

字典

指定 type7 nssa 功能

prefer

布尔值

优先选择 type7 外部路由而不是 type5

选择

  • false

  • true

translate

布尔值

将 type7 转换为 type5

选择

  • false

  • true

cost

整数

指定接口成本

database_filter

字典

在同步和洪泛期间过滤 LSA

all_outgoing_lsa

布尔值

过滤所有传出的 LSA

选择

  • false

  • true

dead_interval

整数

声明邻居死亡后的间隔

default_information_originate

字典

控制默认信息的分布

always

布尔值

始终通告默认路由

选择

  • false

  • true

metric

整数

ospfv3 默认度量值

metric_type

整数

默认路由的 ospfv3 度量类型

route_policy

字符串

将路由策略应用于默认信息发起

set

布尔值

启用默认路由的分布

选择

  • false

  • true

tag

整数

为默认路由设置标记

default_metric

整数

设置重分发路由的度量值

demand_circuit

布尔值

启用/禁用 ospfv3 按需电路

选择

  • false

  • true

distance

字典

定义管理距离

admin_distance

整数

管理距离

ospfv3_distance

字典

ospfv3 管理距离

external

整数

外部路由的距离

inter_area

整数

区域间路由的距离

intra_area

整数

区域内路由的距离

distribute_list

字典

筛选到/从 RIB 的前缀

prefix_list

列表 / 元素=字符串

根据 IPv6 前缀列表筛选前缀

in

布尔值

筛选安装到 RIB 的前缀

选择

  • false

  • true

name

字符串

指定前缀列表名称

out

布尔值

筛选从 RIB 重分发的前缀

选择

  • false

  • true

encryption

字典

加密和验证 OSPFv3 数据包

disable

布尔值

不加密 OSPFv3 数据包

选择

  • false ← (默认)

  • true

ipsec

字典

指定 IPSec ESP 加密和身份验证

esp

字典

指定加密参数

aes

字典

这指定 aes 算法

algorithim_type

字符串

指定 aes 算法的位加密

选择

  • "192"

  • "256"

clear_key

字符串

以明文形式指定 AES 密钥

key

字符串

明文 AES 密钥

password_key

字符串

以加密形式指定 AES 密钥

des

字典

这指定 des 算法

clear_key

字符串

以明文形式指定 AES 密钥

key

字符串

明文 AES 密钥

password_key

字符串

以加密形式指定 AES 密钥

null_encryption

字典

指定空加密属性

authentication

字典

指定身份验证参数

algorithim_type

字符串

指定算法类型

选择

  • "md5"

  • "sha1"

clear_key

字符串

以明文形式指定密钥

key

字符串

指定密钥

password_key

字符串

以加密形式指定密钥

triple_des

字典

这指定三重 DES 算法

clear_key

字符串

以明文形式指定 3DES 密钥

key

字符串

明文 3DES 密钥

password_key

字符串

以加密形式指定 3DES 密钥

spi

整数

指定安全参数索引值

fast_reroute

字典

指定 IP 快速重路由

disabled

布尔值

禁用 IP 快速重路由

选择

  • false

  • true

字典

指定每个前缀计算

字符串

指定每个链路的 LFA 排除或 FRR LFA 候选信息

选择

  • "exclude"

  • "lfa_candidate"

字典

指定每个链路的 LFA 排除信息

列表 / 元素=整数

指定聚合以太网接口

列表 / 元素=整数

指定桥组虚拟接口

列表 / 元素=字符串

指定 FastEthernet/IEEE 802.3 接口

列表 / 元素=字符串

指定 FiftyGigE/IEEE 802.3 接口

列表 / 元素=字符串

指定 FortyGigE/IEEE 802.3 接口

列表 / 元素=字符串

指定 FourHundredGigE/IEEE 802.3 接口

列表 / 元素=字符串

指定 GigabitEthernet/IEEE 802.3 接口

列表 / 元素=字符串

指定 HundredGigE/IEEE 802.3 接口

列表 / 元素=字符串

指定 MgmtEth/IEEE 802.3 接口

列表 / 元素=字符串

指定多链路网络接口

列表 / 元素=整数

指定网络虚拟化端点接口

列表 / 元素=整数

指定聚合 pos 接口

列表 / 元素=整数

指定 PWHE 以太网接口

列表 / 元素=整数

指定 PWHE VC11 IP 互通接口

列表 / 元素=字符串

指定串行网络接口

列表 / 元素=字符串

指定 SRP 接口

列表 / 元素=字符串

指定 TenGigabitEthernet/IEEE 802.3 接口

列表 / 元素=整数

指定 GRE/IPinIP 隧道接口

列表 / 元素=整数

指定 IPSec 隧道接口

整数

MPLS 传输协议隧道接口

列表 / 元素=整数

指定 MPLS 流量工程 P2MP 隧道接口

列表 / 元素=字符串

指定 25 千兆以太网/IEEE 802.3 接口

列表 / 元素=字符串

指定 200 千兆以太网/IEEE 802.3 接口

布尔值

仅启用/禁用从候选列表中选择备份

选择

  • false

  • true

per_prefix

字典

指定每个前缀计算

information_type

字符串

指定 per_prefix LFA 排除或 FRR LFA 候选信息

选择

  • "exclude"

  • "lfa_candidate"

interface

字典

指定每个链路的 LFA 排除信息

bundle_ether

列表 / 元素=整数

指定聚合以太网接口

bvi

列表 / 元素=整数

指定桥组虚拟接口

fast_ethernet

列表 / 元素=字符串

指定 FastEthernet/IEEE 802.3 接口

fiftygige

列表 / 元素=字符串

指定 FiftyGigE/IEEE 802.3 接口

fortygige

列表 / 元素=字符串

指定 FortyGigE/IEEE 802.3 接口

fourhundredgige

列表 / 元素=字符串

指定 FourHundredGigE/IEEE 802.3 接口

gigabitethernet

列表 / 元素=字符串

指定 GigabitEthernet/IEEE 802.3 接口

hundredgige

列表 / 元素=字符串

指定 HundredGigE/IEEE 802.3 接口

mgmteth

列表 / 元素=字符串

指定 MgmtEth/IEEE 802.3 接口

列表 / 元素=字符串

指定多链路网络接口

nve

列表 / 元素=整数

指定网络虚拟化端点接口

post_int

列表 / 元素=整数

指定聚合 pos 接口

pw_ether

列表 / 元素=整数

指定 PWHE 以太网接口

pw_iw

列表 / 元素=整数

指定 PWHE VC11 IP 互通接口

serial

列表 / 元素=字符串

指定串行网络接口

srp

列表 / 元素=字符串

指定 SRP 接口

tengige

列表 / 元素=字符串

指定 TenGigabitEthernet/IEEE 802.3 接口

tunnel_ip

列表 / 元素=整数

指定 GRE/IPinIP 隧道接口

tunnel_ipsec

列表 / 元素=整数

指定 IPSec 隧道接口

tunnel_mpls

整数

MPLS 传输协议隧道接口

tunnel_mte

列表 / 元素=整数

指定 MPLS 流量工程 P2MP 隧道接口

twentyfivegige

列表 / 元素=字符串

指定 25 千兆以太网/IEEE 802.3 接口

twohundredgige

列表 / 元素=字符串

指定 200 千兆以太网/IEEE 802.3 接口

use_candidate_only

布尔值

仅启用/禁用从候选列表中选择备份

选择

  • false

  • true

flood_reduction

布尔值

启用/禁用洪泛抑制

选择

  • false

  • true

graceful_restart

字典

启用平滑重启

helper_disable

布尔值

禁用路由器的辅助支持级别

选择

  • false

  • true

max_interval

整数

重启后最大路由生存期

min_interval

整数

平滑重启之间的最小间隔

set

布尔值

设置平滑重启

选择

  • false

  • true

hello_interval

整数

指定 HELLO 数据包的发送间隔

ignore_mospf_type6_lsa

布尔值

忽略 MOSPF Type 6 LSA

选择

  • false

  • true

instance_id

整数

指定实例 ID

log_adjacency_changes

字典

记录邻接状态更改

detail

布尔值

记录所有状态更改

选择

  • false

  • true

disable

布尔值

禁用日志邻接更改

选择

  • false

  • true

set

布尔值

设置日志邻接

选择

  • false

  • true

maximum

字典

设置 OSPFv3 限制

interfaces

整数

指定接口数量的限制

paths

整数

指定路径数量的限制

redistributed_prefixes

整数

指定重分发前缀数量的限制

mpls_ldp_sync

布尔值

启用/禁用 MPLS LDP 同步

选择

  • false

  • true

mtu_ignore

布尔值

启用/禁用在 DBD 数据包中忽略 MTU

选择

  • false

  • true

network

字符串

指定网络类型

选择

  • "broadcast"

  • "non-broadcast"

  • "point-to-multipoint"

  • "point-to-point"

nsr

布尔值

为此进程中的所有 VRF 启用/禁用 NSR

选择

  • false

  • true

packet_size

整数

指定 OSPFv3 数据包的大小限制

passive

布尔值

启用/禁用接口上的路由更新

选择

  • false

  • true

prefix_suppression

布尔值

隐藏此接口上的所有传输地址

选择

  • false

  • true

priority

整数

指定路由器优先级

process_id

字符串 / 必需

OSPFv3 进程 ID

protocol_shutdown

布尔值

平滑关闭 OSPFv3 协议

选择

  • false

  • true

redistribute

字典

从另一个路由协议重分发信息

application

列表 / 元素=字典

指定应用程序路由

id

字符串 / 必需

OnePK 应用程序名称

metric

整数

指定重分发路由的度量值

metric_type

整数

指定重分发路由的 OSPFv3 外部度量类型

route_policy

字符串

将路由策略应用于重分发

set

布尔值

设置应用程序路由

选择

  • false

  • true

tag

整数

为重分发到 OSPFv3 中的路由设置标记

bgp

列表 / 元素=字典

指定 bgp 路由

id

整数 / 必需

BGP 进程名称

metric

整数

指定重分发路由的度量值

metric_type

整数

指定重分发路由的 OSPFv3 外部度量类型

preserved_med

字符串

指定保留 BGP 路由的 med

route_policy

字符串

将路由策略应用于重分发

set

布尔值

设置 bgp 路由编号

选择

  • false

  • true

tag

整数

为重分发到 OSPFv3 中的路由设置标记

connected

字典

指定已连接路由

metric

整数

指定重分发路由的度量值

metric_type

整数

指定重分发路由的 OSPFv3 外部度量类型

route_policy

字符串

将路由策略应用于重分发

set

布尔值

设置已连接路由

选择

  • false

  • true

tag

整数

为重分发到 OSPFv3 中的路由设置标记

eigrp

列表 / 元素=字典

指定 eigrp 路由

id

整数 / 必需

EIGRP 进程名称

match

字符串

重分发 EIGRP 路由

选择

  • "external"

  • "internal"

metric

整数

指定重分发路由的度量值

metric_type

整数

指定重分发路由的 OSPFv3 外部度量类型

route_policy

字符串

将路由策略应用于重分发

set

布尔值

设置 bgp 路由编号

选择

  • false

  • true

tag

整数

为重分发到 OSPFv3 中的路由设置标记

isis

列表 / 元素=字典

指定 IS-IS 路由

id

字符串 / 必需

IS-IS 名称

level

字符串

指定 IS-IS 级别路由

选择

  • "level-1"

  • "level-1-2"

  • "level-2"

metric

整数

指定重分发路由的度量值

metric_type

整数

指定重分发路由的 OSPFv3 外部度量类型

route_policy

字符串

将路由策略应用于重分发

set

布尔值

设置 IS-IS 路由编号

选择

  • false

  • true

tag

整数

为重分发到 OSPFv3 中的路由设置标记

mobile

字典

指定移动路由

metric

整数

指定重分发路由的度量值

metric_type

整数

指定重分发路由的 OSPFv3 外部度量类型

route_policy

字符串

将路由策略应用于重分发

set

布尔值

设置移动路由编号

选择

  • false

  • true

tag

整数

为重分发到 OSPFv3 中的路由设置标记

ospfv3

列表 / 元素=字典

指定 ospfv3 路由

id

字符串 / 必需

OSPFv3 进程名称

match

字典

重分发 OSPFv3 路由

external

整数

重分发 OSPFv3 外部路由

选择

  • 1

  • 2

internal

布尔值

重分发 OSPFv3 内部路由

选择

  • false

  • true

nssa_external

整数

重分发 NSSA OSPFv3 外部路由

选择

  • 1

  • 2

metric

整数

指定重分发路由的度量值

metric_type

整数

指定重分发路由的 OSPFv3 外部度量类型

route_policy

字符串

将路由策略应用于重分发

set

布尔值

设置 ospfv3 路由编号

选择

  • false

  • true

tag

整数

为重分发到 OSPFv3 中的路由设置标记

static

字典

指定静态路由

metric

整数

指定重分发路由的度量值

metric_type

整数

指定重分发路由的 OSPFv3 外部度量类型

route_policy

字符串

将路由策略应用于重分发

set

布尔值

设置静态路由

选择

  • false

  • true

tag

整数

为重分发到 OSPFv3 中的路由设置标记

subscriber

字典

指定订户路由

metric

整数

指定重分发路由的度量值

metric_type

整数

指定重分发路由的 OSPFv3 外部度量类型

route_policy

字符串

将路由策略应用于重分发

set

布尔值

设置静态路由

选择

  • false

  • true

tag

整数

为重分发到 OSPFv3 中的路由设置标记

retransmit_interval

整数

LSA 重传之间的延迟

router_id

字符串

IPv4 地址格式的 ospfv3 路由器 ID (A.B.C.D)

spf_prefix_priority

字典

指定 SPF 配置

disable

布尔值

禁用 SPF 前缀优先级

选择

  • false

  • true

route_policy

列表 / 元素=字典

指定用于优先安装路由的路由策略

name

字符串

指定策略的名称

value

字符串

指定策略的参数值 ()

stub_router

字典

进入存根路由器配置子模式

router_lsa

字典

修改自身发起的路由器 LSA

advertise_with

字符串

使用指定的类型通告 LSA

选择

  • "max-metric"

  • "r-bit"

  • "v6-bit"

always

布尔值

无条件强制 ospfv3 存根路由器模式

选择

  • false

  • true

external_lsa

字典

在存根路由器模式下覆盖外部 LSA 度量值

metric

整数

在存根路由器模式下使用的度量值

set

布尔值

设置外部 lsa

选择

  • false

  • true

include_stub

布尔值

在存根路由器模式下为存根链路设置最大度量值

选择

  • false

  • true

on_proc_migration

整数

在 ospfv3 进程迁移时进入存根路由器模式

on_proc_restart

整数

在 ospfv3 进程重启时进入存根路由器模式

on_startup

字典

在启动时进入存根路由器模式

time

整数

保持在存根路由器模式下的时间(以秒为单位)

wait_for_bgp

布尔值

当 BGP 收敛时退出存根路由器模式

选择

  • false

  • true

on_switchover

整数

在 RP 切换时进入存根路由器模式

summary_lsa

字典

在存根路由器模式下覆盖汇总 LSA 度量值

metric

整数

在存根路由器模式下使用的度量值

set

布尔值

启用汇总 LSA

选择

  • false

  • true

summary_prefix

列表 / 元素=字典

配置 IP 地址汇总

not_advertise

布尔值

抑制与指定前缀/掩码对匹配的路由

选择

  • false

  • true

prefix

字符串 / 必需

IP 汇总地址/掩码 (A.B.C.D/prefix)

tag

整数

设置标记

timers

字典

调整路由计时器

lsa_arrival

整数

指定 LSA 到达计时器

pacing

字典

指定步调计时器

flood

整数

洪泛步调计时器

lsa_group

整数

LSA 组步调计时器

retransmission

整数

LSA 组步调计时器

throttle

字典

调整节流计时器

lsa

字典

指定 LSA 节流计时器

all_lsa_initial

整数

以毫秒为单位延迟生成 LSA 的第一次出现

all_lsa_minimum

整数

以毫秒为单位,发起同一 LSA 之间的最小延迟

spf

字典

指定 SPF 节流计时器

spf_initial

整数

以毫秒为单位延迟生成 SPF 的第一次出现

spf_minimum

整数

以毫秒为单位,发起同一 SPF 之间的最小延迟

trace

字典

指定 OSPF 跟踪选项

size

字符串

删除现有缓冲区并创建一个具有 N 个条目的缓冲区

value

整数

指定跟踪条目

transmit_delay

整数

发送链路状态更新数据包所需的估计时间

running_config

字符串

此选项仅在状态为parsed时使用。

此选项的值应该是通过执行命令 show running-config router ospfv3 从 IOS-XR 设备收到的输出。

状态parsedrunning_config选项读取配置,并根据资源模块的 argspec 将其转换为 Ansible 结构化数据,然后该值将返回到结果中的parsed键中。

state

字符串

配置应处于的状态

选择

  • "merged" ←(默认)

  • "replaced"

  • "overridden"

  • "deleted"

  • "gathered"

  • "rendered"

  • "parsed"

注释

注意

示例

# 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

#
# Task Output:
# ------------
#
# before: {}
#
# - 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
#  !
# !
# 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
#  !
# !
# 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

#
# Task Output:
# ------------
#
# 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
#  !
# !
# 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 overridden
#
# Before state:
# -------------
#
# 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
#  !
# !
# 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

#
# Task Output:
# ------------
#
# 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 27
#   - area 10 authentication disable
#   - area 20 authentication disable
#   - router ospfv3 26
#   - no authentication disable
#   - area 10 authentication disable
#   - area 10 hello-interval 2
#
# after:
#     processes:
#     - process_id: '10'
#     - areas:
#       - area_id: '10'
#         authentication:
#           disable: true
#         hello_interval: 2
#       process_id: '26'
#     - areas:
#       - area_id: '10'
#         authentication:
#           disable: true
#         hello_interval: 2
#       - area_id: '20'
#         authentication:
#           disable: true
#         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
#  area 10
#   authentication disable
#   hello-interval 2
#  !
# !
# router ospfv3 27
#  area 10
#   authentication disable
#   hello-interval 2
#  !
#  area 20
#   cost 2
#   authentication disable
#   default-cost 2
#  !
# !
# 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
#   cost 11
#   default-cost 5
#  !
#  area 22
#   default-cost 6
#  !
# !
# router ospfv3 26
#  authentication disable
#  area 10
#   authentication disable
#   hello-interval 2
#  !
# !
# router ospfv3 27
#  area 10
#   authentication disable
#   hello-interval 2
#  !
#  area 20
#   cost 2
#   authentication disable
#   default-cost 2
#  !
# !
# 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: 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


#
# Task Output:
# ------------
#
# before:
#     processes:
#     - areas:
#       - area_id: '11'
#         cost: 11
#         default_cost: 5
#       - area_id: '22'
#         default_cost: 6
#       process_id: '10'
#     - areas:
#       - area_id: '10'
#         authentication:
#           disable: true
#         hello_interval: 2
#       authentication:
#         disable: true
#       process_id: '26'
#     - areas:
#       - area_id: '10'
#         authentication:
#           disable: true
#         hello_interval: 2
#       - area_id: '20'
#         authentication:
#           disable: true
#         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 26
#   - no authentication disable
#   - no area 10 authentication disable
#   - no area 10 hello-interval 2
#   - router ospfv3 27
#   - no area 10 authentication disable
#   - no area 10 hello-interval 2
#   - no area 20 authentication disable
#   - no area 20 default-cost 2
#   - no area 20 cost 2
#   - 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
#
# 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
#  area 11
#  !
#  area 22
#  !
# !
# router ospfv3 26
#  area 10
#  !
# !
# router ospfv3 27
#  area 10
#  !
#  area 20
#  !
# !
# 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
#   cost 11
#   default-cost 5
#  !
#  area 22
#   default-cost 6
#  !
# !
# router ospfv3 26
#  authentication disable
#  area 10
#   authentication disable
#   hello-interval 2
#  !
# !
# router ospfv3 27
#  area 10
#   authentication disable
#   hello-interval 2
#  !
#  area 20
#   cost 2
#   authentication disable
#   default-cost 2
#  !
# !
# 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: Deleted existing OSPFv3 configurations from the device
  cisco.iosxr.iosxr_ospfv3:
    config:
    state: deleted

#
# Task Output:
# ------------
#
# before:
#     processes:
#     - areas:
#       - area_id: '11'
#         cost: 11
#         default_cost: 5
#       - area_id: '22'
#         default_cost: 6
#       process_id: '10'
#     - areas:
#       - area_id: '10'
#         authentication:
#           disable: true
#         hello_interval: 2
#       authentication:
#         disable: true
#       process_id: '26'
#     - areas:
#       - area_id: '10'
#         authentication:
#           disable: true
#         hello_interval: 2
#       - area_id: '20'
#         authentication:
#           disable: true
#         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 26
#   - no authentication disable
#   - no area 10 authentication disable
#   - no area 10 hello-interval 2
#   - router ospfv3 27
#   - no area 10 authentication disable
#   - no area 10 hello-interval 2
#   - no area 20 authentication disable
#   - no area 20 default-cost 2
#   - no area 20 cost 2
#   - 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
#
# 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
#  area 11
#  !
#  area 22
#  !
# !
# router ospfv3 26
#  area 10
#  !
# !
# router ospfv3 27
#  area 10
#  !
#  area 20
#  !
# !
# router ospfv3 30
#  area 11
#  !
#  area 22
#  !
# !


# 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
#
#
# Task Output:
# ------------
#
# 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

#
#
# Task Output:
# ------------
#
# 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 ospfv3
# 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
#  !
# !
# 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
#
#
# Task Output:
# ------------
#
# 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
#

返回值

常用返回值记录在此处,以下是此模块独有的字段

描述

after

字典

生成的配置模型调用。

返回:当更改时

示例: "返回的配置将始终与上述参数的格式相同。\n"

之前

字典

模型调用之前的配置。

返回: 总是

示例: "返回的配置将始终与上述参数的格式相同。\n"

命令

列表 / 元素=字符串

推送到远程设备的命令集。

返回: 总是

示例: ["router ospfv3 10", "area 11 default-cost 5", "area 11 cost 11", "area 22 default-cost 6"]

已收集

字典

从远程设备收集的关于网络资源的结构化数据形式的事实。

返回:stategathered

示例: "此输出将始终与模块参数规范的格式相同。\n"

已解析

字典

根据模块参数规范,将 running_config 选项中提供的设备原生配置解析为结构化数据。

返回:stateparsed

示例: "此输出将始终与模块参数规范的格式相同。\n"

已呈现

列表 / 元素=字符串

任务中提供的配置以设备原生格式呈现(离线)。

返回:staterendered

示例: ["router ospfv3 27", "area 10 hello-interval 2"]

作者

  • Rohit Thakur (@rohitthakur2590)