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 配置
参数
参数 |
注释 |
---|---|
ospfv3 进程配置的列表 |
|
ospfv3 实例配置的列表 |
|
为 ipv4 地址族启用单播拓扑 选择
|
|
配置 ospfv3 区域的属性 |
|
作为 IP 地址或整数的区域 ID |
|
启用身份验证 |
|
不验证 OSPFv3 数据包 选择
|
|
指定 IPSec AH 身份验证属性 |
|
指定算法类型 选择
|
|
以明文形式指定密钥 |
|
指定密钥 |
|
以加密形式指定密钥 |
|
指定安全参数索引值 |
|
配置 BFD 参数 |
|
配置快速检测 |
|
仅启用快速检测 选择
|
|
保持邻居会话,直到 BFD 会话启动 选择
|
|
以毫秒为单位的 Hello 间隔 |
|
检测乘数 |
|
接口成本 |
|
在同步和洪泛期间过滤 LSA |
|
过滤所有传出的 LSA 选择
|
|
声明邻居死亡后的间隔 |
|
设置 NSSA/stub 区域的摘要默认成本。Stub 的通告外部路由指标 |
|
启用/禁用 ospfv3 按需电路 选择
|
|
在同步和洪泛期间过滤 LSA |
|
加密和验证 OSPFv3 数据包 |
|
不加密 OSPFv3 数据包 选择
|
|
指定 IPSec ESP 加密和身份验证 |
|
指定加密参数 |
|
这指定 aes 算法 |
|
指定 aes 算法的位加密 选择
|
|
以明文形式指定 AES 密钥 |
|
明文 AES 密钥 |
|
以加密形式指定 AES 密钥 |
|
这指定 des 算法 |
|
以明文形式指定 AES 密钥 |
|
明文 AES 密钥 |
|
以加密形式指定 AES 密钥 |
|
指定空加密属性 |
|
指定身份验证参数 |
|
指定算法类型 选择
|
|
以明文形式指定密钥 |
|
指定密钥 |
|
以加密形式指定密钥 |
|
这指定三重 DES 算法 |
|
以明文形式指定 3DES 密钥 |
|
明文 3DES 密钥 |
|
以加密形式指定 3DES 密钥 |
|
指定安全参数索引值 |
|
指定 IP 快速重路由 |
|
禁用 IP 快速重路由 选择
|
|
指定每个前缀计算 |
|
指定每个链路的 LFA 排除或 FRR LFA 候选信息 选择
|
|
指定每个链路的 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 接口 |
|
仅启用/禁用从候选列表中选择备份 选择
|
|
指定每个前缀计算 |
|
指定 per_prefix LFA 排除或 FRR LFA 候选信息 选择
|
|
指定每个链路的 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 接口 |
|
仅启用/禁用从候选列表中选择备份 选择
|
|
启用/禁用洪泛抑制 选择
|
|
指定 HELLO 数据包的发送间隔 |
|
指定实例 ID |
|
启用/禁用 MPLS LDP 同步 选择
|
|
启用/禁用在 DBD 数据包中忽略 MTU 选择
|
|
指定网络类型 选择
|
|
区域的 NSSA 设置 |
|
发起默认的 Type 7 LSA |
|
ospfv3 默认度量值 |
|
默认路由的度量类型 |
|
将 nssa 设置为发起默认信息 选择
|
|
不将重分发的 LSA 发送到 NSSA 区域 选择
|
|
不将汇总 LSA 发送到 NSSA 区域 选择
|
|
将区域配置为 NSSA 选择
|
|
转换 LSA |
|
从 Type 7 转换为 Type 5 |
|
始终转换 LSA 选择
|
|
指定 OSPFv3 数据包的大小限制 |
|
启用/禁用接口上的路由更新 选择
|
|
隐藏此接口上的所有传输地址 选择
|
|
指定路由器优先级 |
|
汇总匹配地址/掩码的路由(仅限边界路由器) |
|
前缀格式的 IP (X:X::X/长度) |
|
通告此范围(默认) 选择
|
|
为此范围指定用户指定的度量值 |
|
不通告此范围 选择
|
|
指定 LSA 重传之间的延迟 |
|
用于将区域配置为存根的设置 |
|
不将汇总 LSA 发送到存根区域 选择
|
|
将区域配置为存根 选择
|
|
指定发送链路状态更新数据包所需的估计时间 |
|
定义虚拟链路 |
|
启用身份验证 |
|
不验证 OSPFv3 数据包 选择
|
|
指定 IPSec AH 身份验证属性 |
|
指定算法类型 选择
|
|
以明文形式指定密钥 |
|
指定密钥 |
|
以加密形式指定密钥 |
|
指定安全参数索引值 |
|
声明邻居死亡后的间隔 |
|
加密和验证 OSPFv3 数据包 |
|
不加密 OSPFv3 数据包 选择
|
|
指定 IPSec ESP 加密和身份验证 |
|
指定加密参数 |
|
这指定 aes 算法 |
|
指定 aes 算法的位加密 选择
|
|
以明文形式指定 AES 密钥 |
|
明文 AES 密钥 |
|
以加密形式指定 AES 密钥 |
|
这指定 des 算法 |
|
以明文形式指定 AES 密钥 |
|
明文 AES 密钥 |
|
以加密形式指定 AES 密钥 |
|
指定空加密属性 |
|
指定身份验证参数 |
|
指定算法类型 选择
|
|
以明文形式指定密钥 |
|
指定密钥 |
|
以加密形式指定密钥 |
|
这指定三重 DES 算法 |
|
以明文形式指定 3DES 密钥 |
|
明文 3DES 密钥 |
|
以加密形式指定 3DES 密钥 |
|
指定安全参数索引值 |
|
HELLO 数据包的发送间隔 |
|
虚拟链路邻居的路由器 ID (A.B.C.D) |
|
LSA 重传之间的延迟 |
|
链路状态传输延迟 |
|
启用身份验证 |
|
不验证 OSPFv3 数据包 选择
|
|
指定 IPSec AH 身份验证属性 |
|
指定算法类型 选择
|
|
以明文形式指定密钥 |
|
指定密钥 |
|
以加密形式指定密钥 |
|
指定安全参数索引值 |
|
根据带宽计算 ospfv3 接口成本 |
|
根据接口类型分配 ospfv3 成本 选择
|
|
指定参考带宽,单位为兆比特/秒 |
|
配置 BFD 参数 |
|
配置快速检测 |
|
仅启用快速检测 选择
|
|
保持邻居会话,直到 BFD 会话启动 选择
|
|
以毫秒为单位的 Hello 间隔 |
|
检测乘数 |
|
启用特定的 OSPFv3 功能 |
|
指定 type7 nssa 功能 |
|
优先选择 type7 外部路由而不是 type5 选择
|
|
将 type7 转换为 type5 选择
|
|
指定接口成本 |
|
在同步和洪泛期间过滤 LSA |
|
过滤所有传出的 LSA 选择
|
|
声明邻居死亡后的间隔 |
|
控制默认信息的分布 |
|
始终通告默认路由 选择
|
|
ospfv3 默认度量值 |
|
默认路由的 ospfv3 度量类型 |
|
将路由策略应用于默认信息发起 |
|
启用默认路由的分布 选择
|
|
为默认路由设置标记 |
|
设置重分发路由的度量值 |
|
启用/禁用 ospfv3 按需电路 选择
|
|
定义管理距离 |
|
管理距离 |
|
ospfv3 管理距离 |
|
外部路由的距离 |
|
区域间路由的距离 |
|
区域内路由的距离 |
|
筛选到/从 RIB 的前缀 |
|
根据 IPv6 前缀列表筛选前缀 |
|
筛选安装到 RIB 的前缀 选择
|
|
指定前缀列表名称 |
|
筛选从 RIB 重分发的前缀 选择
|
|
加密和验证 OSPFv3 数据包 |
|
不加密 OSPFv3 数据包 选择
|
|
指定 IPSec ESP 加密和身份验证 |
|
指定加密参数 |
|
这指定 aes 算法 |
|
指定 aes 算法的位加密 选择
|
|
以明文形式指定 AES 密钥 |
|
明文 AES 密钥 |
|
以加密形式指定 AES 密钥 |
|
这指定 des 算法 |
|
以明文形式指定 AES 密钥 |
|
明文 AES 密钥 |
|
以加密形式指定 AES 密钥 |
|
指定空加密属性 |
|
指定身份验证参数 |
|
指定算法类型 选择
|
|
以明文形式指定密钥 |
|
指定密钥 |
|
以加密形式指定密钥 |
|
这指定三重 DES 算法 |
|
以明文形式指定 3DES 密钥 |
|
明文 3DES 密钥 |
|
以加密形式指定 3DES 密钥 |
|
指定安全参数索引值 |
|
指定 IP 快速重路由 |
|
禁用 IP 快速重路由 选择
|
|
指定每个前缀计算 |
|
指定每个链路的 LFA 排除或 FRR LFA 候选信息 选择
|
|
指定每个链路的 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 接口 |
|
仅启用/禁用从候选列表中选择备份 选择
|
|
指定每个前缀计算 |
|
指定 per_prefix LFA 排除或 FRR LFA 候选信息 选择
|
|
指定每个链路的 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 接口 |
|
仅启用/禁用从候选列表中选择备份 选择
|
|
启用/禁用洪泛抑制 选择
|
|
启用平滑重启 |
|
禁用路由器的辅助支持级别 选择
|
|
重启后最大路由生存期 |
|
平滑重启之间的最小间隔 |
|
设置平滑重启 选择
|
|
指定 HELLO 数据包的发送间隔 |
|
忽略 MOSPF Type 6 LSA 选择
|
|
指定实例 ID |
|
记录邻接状态更改 |
|
记录所有状态更改 选择
|
|
禁用日志邻接更改 选择
|
|
设置日志邻接 选择
|
|
设置 OSPFv3 限制 |
|
指定接口数量的限制 |
|
指定路径数量的限制 |
|
指定重分发前缀数量的限制 |
|
启用/禁用 MPLS LDP 同步 选择
|
|
启用/禁用在 DBD 数据包中忽略 MTU 选择
|
|
指定网络类型 选择
|
|
为此进程中的所有 VRF 启用/禁用 NSR 选择
|
|
指定 OSPFv3 数据包的大小限制 |
|
启用/禁用接口上的路由更新 选择
|
|
隐藏此接口上的所有传输地址 选择
|
|
指定路由器优先级 |
|
OSPFv3 进程 ID |
|
平滑关闭 OSPFv3 协议 选择
|
|
从另一个路由协议重分发信息 |
|
指定应用程序路由 |
|
OnePK 应用程序名称 |
|
指定重分发路由的度量值 |
|
指定重分发路由的 OSPFv3 外部度量类型 |
|
将路由策略应用于重分发 |
|
设置应用程序路由 选择
|
|
为重分发到 OSPFv3 中的路由设置标记 |
|
指定 bgp 路由 |
|
BGP 进程名称 |
|
指定重分发路由的度量值 |
|
指定重分发路由的 OSPFv3 外部度量类型 |
|
指定保留 BGP 路由的 med |
|
将路由策略应用于重分发 |
|
设置 bgp 路由编号 选择
|
|
为重分发到 OSPFv3 中的路由设置标记 |
|
指定已连接路由 |
|
指定重分发路由的度量值 |
|
指定重分发路由的 OSPFv3 外部度量类型 |
|
将路由策略应用于重分发 |
|
设置已连接路由 选择
|
|
为重分发到 OSPFv3 中的路由设置标记 |
|
指定 eigrp 路由 |
|
EIGRP 进程名称 |
|
重分发 EIGRP 路由 选择
|
|
指定重分发路由的度量值 |
|
指定重分发路由的 OSPFv3 外部度量类型 |
|
将路由策略应用于重分发 |
|
设置 bgp 路由编号 选择
|
|
为重分发到 OSPFv3 中的路由设置标记 |
|
指定 IS-IS 路由 |
|
IS-IS 名称 |
|
指定 IS-IS 级别路由 选择
|
|
指定重分发路由的度量值 |
|
指定重分发路由的 OSPFv3 外部度量类型 |
|
将路由策略应用于重分发 |
|
设置 IS-IS 路由编号 选择
|
|
为重分发到 OSPFv3 中的路由设置标记 |
|
指定移动路由 |
|
指定重分发路由的度量值 |
|
指定重分发路由的 OSPFv3 外部度量类型 |
|
将路由策略应用于重分发 |
|
设置移动路由编号 选择
|
|
为重分发到 OSPFv3 中的路由设置标记 |
|
指定 ospfv3 路由 |
|
OSPFv3 进程名称 |
|
重分发 OSPFv3 路由 |
|
重分发 OSPFv3 外部路由 选择
|
|
重分发 OSPFv3 内部路由 选择
|
|
重分发 NSSA OSPFv3 外部路由 选择
|
|
指定重分发路由的度量值 |
|
指定重分发路由的 OSPFv3 外部度量类型 |
|
将路由策略应用于重分发 |
|
设置 ospfv3 路由编号 选择
|
|
为重分发到 OSPFv3 中的路由设置标记 |
|
指定静态路由 |
|
指定重分发路由的度量值 |
|
指定重分发路由的 OSPFv3 外部度量类型 |
|
将路由策略应用于重分发 |
|
设置静态路由 选择
|
|
为重分发到 OSPFv3 中的路由设置标记 |
|
指定订户路由 |
|
指定重分发路由的度量值 |
|
指定重分发路由的 OSPFv3 外部度量类型 |
|
将路由策略应用于重分发 |
|
设置静态路由 选择
|
|
为重分发到 OSPFv3 中的路由设置标记 |
|
LSA 重传之间的延迟 |
|
IPv4 地址格式的 ospfv3 路由器 ID (A.B.C.D) |
|
指定 SPF 配置 |
|
禁用 SPF 前缀优先级 选择
|
|
指定用于优先安装路由的路由策略 |
|
指定策略的名称 |
|
指定策略的参数值 () |
|
进入存根路由器配置子模式 |
|
修改自身发起的路由器 LSA |
|
使用指定的类型通告 LSA 选择
|
|
无条件强制 ospfv3 存根路由器模式 选择
|
|
在存根路由器模式下覆盖外部 LSA 度量值 |
|
在存根路由器模式下使用的度量值 |
|
设置外部 lsa 选择
|
|
在存根路由器模式下为存根链路设置最大度量值 选择
|
|
在 ospfv3 进程迁移时进入存根路由器模式 |
|
在 ospfv3 进程重启时进入存根路由器模式 |
|
在启动时进入存根路由器模式 |
|
保持在存根路由器模式下的时间(以秒为单位) |
|
当 BGP 收敛时退出存根路由器模式 选择
|
|
在 RP 切换时进入存根路由器模式 |
|
在存根路由器模式下覆盖汇总 LSA 度量值 |
|
在存根路由器模式下使用的度量值 |
|
启用汇总 LSA 选择
|
|
配置 IP 地址汇总 |
|
抑制与指定前缀/掩码对匹配的路由 选择
|
|
IP 汇总地址/掩码 (A.B.C.D/prefix) |
|
设置标记 |
|
调整路由计时器 |
|
指定 LSA 到达计时器 |
|
指定步调计时器 |
|
洪泛步调计时器 |
|
LSA 组步调计时器 |
|
LSA 组步调计时器 |
|
调整节流计时器 |
|
指定 LSA 节流计时器 |
|
以毫秒为单位延迟生成 LSA 的第一次出现 |
|
以毫秒为单位,发起同一 LSA 之间的最小延迟 |
|
指定 SPF 节流计时器 |
|
以毫秒为单位延迟生成 SPF 的第一次出现 |
|
以毫秒为单位,发起同一 SPF 之间的最小延迟 |
|
指定 OSPF 跟踪选项 |
|
删除现有缓冲区并创建一个具有 N 个条目的缓冲区 |
|
指定跟踪条目 |
|
发送链路状态更新数据包所需的估计时间 |
|
此选项仅在状态为parsed时使用。 此选项的值应该是通过执行命令 show running-config router ospfv3 从 IOS-XR 设备收到的输出。 状态parsed从 |
|
配置应处于的状态 选择
|
注释
注意
此模块与连接
network_cli
一起使用。请参阅IOS-XR 平台选项
示例
# 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
#
返回值
常用返回值记录在此处,以下是此模块独有的字段
键 |
描述 |
---|---|
生成的配置模型调用。 返回:当更改时 示例: |
|
模型调用之前的配置。 返回: 总是 示例: |
|
推送到远程设备的命令集。 返回: 总是 示例: |
|
从远程设备收集的关于网络资源的结构化数据形式的事实。 返回: 当 state 为 示例: |
|
根据模块参数规范,将 running_config 选项中提供的设备原生配置解析为结构化数据。 返回: 当 state 为 示例: |
|
任务中提供的配置以设备原生格式呈现(离线)。 返回: 当 state 为 示例: |