junipernetworks.junos.junos_bgp_global 模块 – 管理运行 Juniper JUNOS 设备的 BGP 全局配置。
注意
此模块是 junipernetworks.junos 集合(版本 9.1.0)的一部分。
如果您正在使用 ansible 包,您可能已经安装了此集合。它不包含在 ansible-core 中。要检查它是否已安装,请运行 ansible-galaxy collection list。
要安装它,请使用:ansible-galaxy collection install junipernetworks.junos。您需要进一步的要求才能使用此模块,有关详细信息,请参阅 要求。
要在 playbook 中使用它,请指定:junipernetworks.junos.junos_bgp_global。
junipernetworks.junos 1.3.0 中的新增功能
概要
- 此模块管理运行 Juniper JUNOS 设备的全局 BGP 配置。 
要求
在执行此模块的主机上需要以下要求。
- ncclient (>=v0.6.4) 
- xmltodict (>=0.12.0) 
参数
| 参数 | 注释 | 
|---|---|
| BGP 进程配置的列表。 | |
| 允许导入策略指定非直接连接的下一跳。 选择 
 | |
| 以 IPv4 地址格式显示 add-path 路径 ID。 选择 
 | |
| 通告 bgp-static 路由。 | |
| 指定静态路由通告策略。 | |
| 设置通告 bgp-static 路由。 选择 
 | |
| 通告最佳外部路由。 | |
| 路由匹配活动路由,直至 MED 比较规则。 选择 
 | |
| 设置通告最佳外部路由。 选择 
 | |
| 在主实例中通告来自 bgp.Xvpn.0 表的 VPN 路由。 选择 
 | |
| 通告非活动路由。 选择 
 | |
| 通告从同一自治系统接收的路由。 选择 
 | |
| 指定自治系统编号。 | |
| 启用 AS-Dot 表示法以显示真正的 4 字节 AS 编号。 选择 
 | |
| 指定身份验证算法名称。 选择 
 | |
| 指定 MD5 身份验证密钥。 | |
| 指定身份验证密钥链名称。 | |
| 双向转发检测 (BFD) 选项。 | |
| 身份验证选项。 | |
| 指定算法名称。 选择 
 | |
| 指定密钥链名称。 | |
| 仅当协商身份验证时才验证身份验证。 选择 
 | |
| 指定检测时间选项。 | |
| 指定触发陷阱的高检测时间(毫秒)。 | |
| 指定将会话 UP 通知保持给客户端的时间。 | |
| 指定最小发送和接收间隔。 | |
| 指定最小接收间隔。 | |
| 指定检测时间乘数。 | |
| 禁用自适应。 选择 
 | |
| BFD 单跳或多跳会话模式。 选择 
 | |
| 发送间隔选项。 | |
| 指定最小发送间隔。 | |
| 指定触发陷阱的高发送间隔。 | |
| 指定 BFD 协议版本号。 选择 
 | |
| 软处理 BGP 格式错误的更新。 | |
| 来自对等方的格式错误路由的最大数量。 | |
| 记录格式错误更新时使用的时间。 | |
| 指定无格式错误路由限制。 选择 
 | |
| 软设置 BGP 格式错误的更新。 选择 
 | |
| 覆盖路由选项设置的特定设置。 | |
| 启用/禁用监视。 选择 
 | |
| 控制路由监视设置。 | |
| 不发送路由监视消息。 选择 
 | |
| 发送后策略路由监视消息。 选择 
 | |
| 发送后策略路由监视消息,并排除未解析的路由等。 选择 
 | |
| 发送前策略路由监视消息,并排除循环路由等。 选择 
 | |
| 发送前策略路由监视消息。 选择 
 | |
| 指定集群标识符。 | |
| 启用路由翻动抑制。 选择 
 | |
| 指定文本描述。 | |
| 禁用 BGP。 选择 
 | |
| 使用出口对等流量工程。 | |
| 要用于此对等方的“出口-TE-备份路径模板”。 | |
| 设置属性。 选择 
 | |
| 出口-TE 对等接口故障的备份路径。 | |
| 指定备份路径模板。 | |
| 将 IP 转发备份路径用于出口 TE。 | |
| 用作 IP 转发备份路径的路由实例。 | |
| 设置将 IP 转发备份路径用于出口 TE。 选择 
 | |
| 出口-TE 备份路径的名称。 | |
| 指定要用作备份下一跳的 BGP 对等体的地址。 | |
| 指定要用作备份路径的远程下一跳地址。 | |
| 配置 BGP 对等体集合段。 | |
| 来自静态标签池的 BGP 对等体集合 SID 标签值。 | |
| 来自静态标签池的备份段标签值。 | |
| BGP 对等体集合段的名称。 | |
| 创建 BGP 对等体 SID 传感器。 选择 
 | |
| 强制邻居 AS 是 AS-PATH 属性中的第一个 AS(EBGP)。 选择 
 | |
| 指定导出策略。 | |
| 指定用于数据转发和传输会话的路由实例。 | |
| BGP 平滑重启选项。 | |
| 禁用平滑重启。 选择 
 | |
| 如果 GR 重启未进行中,则遵守 BFD-Down(C=0)。 选择 
 | |
| 控制转发状态标志协商。 | |
| 作为路由反射器客户端。 选择 
 | |
| 始终使用关联 FIB 的状态。 选择 
 | |
| 长期平滑重启选项。 | |
| 向非 LLGR 邻居通告过时的路由。 | |
| 设置向非 LLGR 邻居通告过时的路由。 选择 
 | |
| 设置向非 LLGR 邻居通告过时的路由。 选择 
 | |
| 禁用接收器(助手)功能。 选择 
 | |
| 与对等体协商时使用的重启时间。 | |
| 设置 BGP 平滑重启选项。 选择 
 | |
| 保留过时路由的最长时间。 | |
| 指定组的名称。 | |
| 允许导入策略指定非直接连接的下一跳。 选择 
 | |
| 以 IPv4 地址格式显示 add-path 路径 ID。 选择 
 | |
| 通告 bgp-static 路由。 | |
| 指定静态路由通告策略。 | |
| 设置通告 bgp-static 路由。 选择 
 | |
| 通告最佳外部路由。 | |
| 路由匹配活动路由,直至 MED 比较规则。 选择 
 | |
| 设置通告最佳外部路由。 选择 
 | |
| 通告非活动路由。 选择 
 | |
| 通告从同一自治系统接收的路由。 选择 
 | |
| 为特定网络配置对等连接。 | |
| 将邻居 AS 号替换为我们的 AS 号 选择 
 | |
| 指定身份验证算法名称。 选择 
 | |
| 指定 MD5 身份验证密钥。 | |
| 指定身份验证密钥链名称。 | |
| 双向转发检测 (BFD) 选项。 | |
| 身份验证选项。 | |
| 指定算法名称。 选择 
 | |
| 指定密钥链名称。 | |
| 仅当协商身份验证时才验证身份验证。 选择 
 | |
| 指定检测时间选项。 | |
| 指定触发陷阱的高检测时间(毫秒)。 | |
| 指定将会话 UP 通知保持给客户端的时间。 | |
| 指定最小发送和接收间隔。 | |
| 指定最小接收间隔。 | |
| 指定检测时间乘数。 | |
| 禁用自适应。 选择 
 | |
| BFD 单跳或多跳会话模式。 选择 
 | |
| 发送间隔选项。 | |
| 指定最小发送间隔。 | |
| 指定触发陷阱的高发送间隔。 | |
| 指定 BFD 协议版本号。 选择 
 | |
| 软处理 BGP 格式错误的更新。 | |
| 来自对等方的格式错误路由的最大数量。 | |
| 记录格式错误更新时使用的时间。 | |
| 指定无格式错误路由限制。 选择 
 | |
| 软设置 BGP 格式错误的更新。 选择 
 | |
| 覆盖路由选项设置的特定设置。 | |
| 启用/禁用监视。 选择 
 | |
| 控制路由监视设置。 | |
| 不发送路由监视消息。 选择 
 | |
| 发送后策略路由监视消息。 选择 
 | |
| 发送后策略路由监视消息,并排除未解析的路由等。 选择 
 | |
| 发送前策略路由监视消息,并排除循环路由等。 选择 
 | |
| 发送前策略路由监视消息。 选择 
 | |
| 指定集群标识符。 | |
| 启用路由翻动抑制。 选择 
 | |
| 指定文本描述。 | |
| 使用出口对等流量工程。 | |
| 要用于此对等方的“出口-TE-备份路径模板”。 | |
| 设置属性。 选择 
 | |
| 强制邻居 AS 是 AS-PATH 属性中的第一个 AS(EBGP)。 选择 
 | |
| 指定导出策略。 | |
| 指定用于数据转发和传输会话的路由实例。 | |
| BGP 平滑重启选项。 | |
| 禁用平滑重启。 选择 
 | |
| 如果 GR 重启未进行中,则遵守 BFD-Down(C=0)。 选择 
 | |
| 控制转发状态标志协商。 | |
| 作为路由反射器客户端。 选择 
 | |
| 始终使用关联 FIB 的状态。 选择 
 | |
| 长期平滑重启选项。 | |
| 向非 LLGR 邻居通告过时的路由。 | |
| 设置向非 LLGR 邻居通告过时的路由。 选择 
 | |
| 设置向非 LLGR 邻居通告过时的路由。 选择 
 | |
| 禁用接收器(助手)功能。 选择 
 | |
| 与对等体协商时使用的重启时间。 | |
| 设置 BGP 平滑重启选项。 选择 
 | |
| 保留过时路由的最长时间。 | |
| 指定与对等体协商时使用的保持时间。 | |
| 在不间断路由切换后停止对等会话启动。 | |
| 使对等体保持空闲状态,直到用户干预。 选择 
 | |
| 指定切换后启动对等体的超时值(秒)。 | |
| 指定导入策略。 | |
| 在多协议更新中包含 NEXT-HOP 属性。 选择 
 | |
| 指定 IPSec SA 名称。 | |
| 指定如何在路由表中保留路由。 选择 
 | |
| 指定 BGP 会话本地端的地址。 | |
| 本地自治系统号。 | |
| 将此 AS 视为系统 AS 的别名。 选择 
 | |
| 自治系统号,格式为纯数字或(asdot 表示法)。 | |
| 此 AS 在 AS 路径中可以出现的最大次数。 | |
| 此 AS 在 AS 路径中可以出现的最大次数。 选择 
 | |
| 隐藏从此对等连接获知的路径中的此本地 AS。 选择 
 | |
| 为 IPv6 链路本地 EBGP 对等连接指定本地接口。 | |
| 指定 LOCAL_PREF 路径属性的值。 | |
| 启用记录对等体状态转换的消息。 选择 
 | |
| 指定 MED 中发送的路由度量。 | |
| 跟踪 IGP 度量。 | |
| 当 IGP 度量增加时延迟更新 MED。 选择 
 | |
| 指定 MED 的度量偏移。 | |
| 设置跟踪 IGP 度量。 选择 
 | |
| 指定度量值。 | |
| 跟踪最小 IGP 度量。 | |
| 指定 MED 的度量偏移。 | |
| 设置跟踪最小 IGP 度量。 选择 
 | |
| 启用 TCP 路径 MTU 发现。 选择 
 | |
| 配置 EBGP 多跳会话。 | |
| 在通告中不要将下一跳更改为自身。 选择 
 | |
| 设置 EBGP 多跳会话。 选择 
 | |
| 会话的 TTL 值。 | |
| 允许在多个 BGP 路径之间进行负载均衡。 | |
| 禁用多路径。 选择 
 | |
| 使用从不同 AS 接收的路径。 选择 
 | |
| 禁用多路径。 选择 
 | |
| 设置允许在多个 BGP 路径之间进行负载均衡。 选择 
 | |
| 指定组的名称 | |
| 指定邻居列表。 | |
| 允许导入策略指定非直接连接的下一跳。 选择 
 | |
| 以 IPv4 地址格式显示 add-path 路径 ID。 选择 
 | |
| 通告 bgp-static 路由。 | |
| 指定静态路由通告策略。 | |
| 设置通告 bgp-static 路由。 选择 
 | |
| 通告最佳外部路由。 | |
| 路由匹配活动路由,直至 MED 比较规则。 选择 
 | |
| 设置通告最佳外部路由。 选择 
 | |
| 通告非活动路由。 选择 
 | |
| 通告从同一自治系统接收的路由。 选择 
 | |
| 将邻居 AS 号替换为我们的 AS 号 选择 
 | |
| 指定身份验证算法名称。 选择 
 | |
| 指定 MD5 身份验证密钥。 | |
| 指定身份验证密钥链名称。 | |
| 双向转发检测 (BFD) 选项。 | |
| 身份验证选项。 | |
| 指定算法名称。 选择 
 | |
| 指定密钥链名称。 | |
| 仅当协商身份验证时才验证身份验证。 选择 
 | |
| 指定检测时间选项。 | |
| 指定触发陷阱的高检测时间(毫秒)。 | |
| 指定将会话 UP 通知保持给客户端的时间。 | |
| 指定最小发送和接收间隔。 | |
| 指定最小接收间隔。 | |
| 指定检测时间乘数。 | |
| 禁用自适应。 选择 
 | |
| BFD 单跳或多跳会话模式。 选择 
 | |
| 发送间隔选项。 | |
| 指定最小发送间隔。 | |
| 指定触发陷阱的高发送间隔。 | |
| 指定 BFD 协议版本号。 选择 
 | |
| 软处理 BGP 格式错误的更新。 | |
| 来自对等方的格式错误路由的最大数量。 | |
| 记录格式错误更新时使用的时间。 | |
| 指定无格式错误路由限制。 选择 
 | |
| 软设置 BGP 格式错误的更新。 选择 
 | |
| 覆盖路由选项设置的特定设置。 | |
| 启用/禁用监视。 选择 
 | |
| 控制路由监视设置。 | |
| 不发送路由监视消息。 选择 
 | |
| 发送后策略路由监视消息。 选择 
 | |
| 发送后策略路由监视消息,并排除未解析的路由等。 选择 
 | |
| 发送前策略路由监视消息,并排除循环路由等。 选择 
 | |
| 发送前策略路由监视消息。 选择 
 | |
| 指定集群标识符。 | |
| 启用路由翻动抑制。 选择 
 | |
| 指定邻居描述。 | |
| 使用出口对等流量工程。 | |
| 要用于此对等方的“出口-TE-备份路径模板”。 | |
| 设置属性。 选择 
 | |
| 强制邻居 AS 是 AS-PATH 属性中的第一个 AS(EBGP)。 选择 
 | |
| 指定导出策略。 | |
| 指定用于数据转发和传输会话的路由实例。 | |
| BGP 平滑重启选项。 | |
| 禁用平滑重启。 选择 
 | |
| 如果 GR 重启未进行中,则遵守 BFD-Down(C=0)。 选择 
 | |
| 控制转发状态标志协商。 | |
| 作为路由反射器客户端。 选择 
 | |
| 始终使用关联 FIB 的状态。 选择 
 | |
| 长期平滑重启选项。 | |
| 向非 LLGR 邻居通告过时的路由。 | |
| 设置向非 LLGR 邻居通告过时的路由。 选择 
 | |
| 设置向非 LLGR 邻居通告过时的路由。 选择 
 | |
| 禁用接收器(助手)功能。 选择 
 | |
| 与对等体协商时使用的重启时间。 | |
| 设置 BGP 平滑重启选项。 选择 
 | |
| 保留过时路由的最长时间。 | |
| 指定与对等体协商时使用的保持时间。 | |
| 在不间断路由切换后停止对等会话启动。 | |
| 使对等体保持空闲状态,直到用户干预。 选择 
 | |
| 指定切换后启动对等体的超时值(秒)。 | |
| 指定导入策略。 | |
| 在多协议更新中包含 NEXT-HOP 属性。 选择 
 | |
| 指定 IPSec SA 名称。 | |
| 指定如何在路由表中保留路由。 选择 
 | |
| 指定 BGP 会话本地端的地址。 | |
| 本地自治系统号。 | |
| 将此 AS 视为系统 AS 的别名。 选择 
 | |
| 自治系统号,格式为纯数字或(asdot 表示法)。 | |
| 此 AS 在 AS 路径中可以出现的最大次数。 | |
| 此 AS 在 AS 路径中可以出现的最大次数。 选择 
 | |
| 隐藏从此对等连接获知的路径中的此本地 AS。 选择 
 | |
| 为 IPv6 链路本地 EBGP 对等连接指定本地接口。 | |
| 指定 LOCAL_PREF 路径属性的值。 | |
| 启用记录对等体状态转换的消息。 选择 
 | |
| 指定 MED 中发送的路由度量。 | |
| 跟踪 IGP 度量。 | |
| 当 IGP 度量增加时延迟更新 MED。 选择 
 | |
| 指定 MED 的度量偏移。 | |
| 设置跟踪 IGP 度量。 选择 
 | |
| 指定度量值。 | |
| 跟踪最小 IGP 度量。 | |
| 指定 MED 的度量偏移。 | |
| 设置跟踪最小 IGP 度量。 选择 
 | |
| 启用 TCP 路径 MTU 发现。 选择 
 | |
| 配置 EBGP 多跳会话。 | |
| 在通告中不要将下一跳更改为自身。 选择 
 | |
| 设置 EBGP 多跳会话。 选择 
 | |
| 会话的 TTL 值。 | |
| 允许在多个 BGP 路径之间进行负载均衡。 | |
| 禁用多路径。 选择 
 | |
| 使用从不同 AS 接收的路径。 选择 
 | |
| 禁用多路径。 选择 
 | |
| 设置允许在多个 BGP 路径之间进行负载均衡。 选择 
 | |
| 指定邻居地址。 | |
| 允许不通告从同一自治系统接收的路由。 选择 
 | |
| 将聚合器路径属性中的路由器 ID 设置为 0。 选择 
 | |
| 禁用集群内路由重分发。 选择 
 | |
| 指定从路由表导出路由之前的时间。 | |
| 动态协商的协作路由过滤。 | |
| 使用 BGP ORF 能力代码 130 和前缀 ORF 类型 128。 选择 
 | |
| 基于前缀的出站路由过滤。 | |
| 遵守来自远程对等体的基于前缀的 ORF。 | |
| 遵守 IPv4 前缀过滤器。 选择 
 | |
| 遵守 IPv6 前缀过滤器。 选择 
 | |
| 设置遵守来自远程对等体的基于前缀的 ORF。 选择 
 | |
| 设置基于前缀的出站路由过滤。 选择 
 | |
| 指定不向对等体发送打开消息。 选择 
 | |
| 指定自治系统号,格式为纯数字或“高 16 位”.“低 16 位”。 | |
| 指定首选项值。 | |
| 删除众所周知的私有 AS 号。 | |
| 删除所有私有 AS 号,并且不停止在第一个公共 AS 号。 选择 
 | |
| 指定私有 AS 替换。 选择 
 | |
| 使用最近的公共 AS 号替换私有 AS 号。 选择 
 | |
| 删除对等体环路检查。 选择 
 | |
| 删除众所周知的私有 AS 号。 选择 
 | |
| 指定符合 RFC6514 SAFI129 格式。 选择 
 | |
| 启用路由服务器客户端行为。 选择 
 | |
| 启用纯 TCP ACK 和重传的积极传输。 选择 
 | |
| 指定最大 TCP 段大小。 | |
| 配置 BGP 的跟踪选项。 | |
| 指定跟踪文件选项。 | |
| 指定写入跟踪信息的文件名。 | |
| 指定跟踪文件的最大数量。 | |
| 不允许任何用户读取日志文件。 选择 
 | |
| 指定最大跟踪文件大小。 | |
| 允许任何用户读取日志文件。 选择 
 | |
| 指定跟踪参数。 | |
| 跟踪详细信息。 选择 
 | |
| 禁用此跟踪标志。 选择 
 | |
| 应用于此标志的过滤器。 | |
| 指定基于前缀的过滤器。 选择 
 | |
| 指定过滤器策略。 | |
| 设置应用于此标志的过滤器。 选择 
 | |
| 指定事件名称 选择 
 | |
| 跟踪接收到的数据包。 选择 
 | |
| 跟踪传输的数据包。 选择 
 | |
| 指定单跳对等体的 TTL 值。 | |
| 指定 BGP 未配置的对等体平滑重启选项。 选择 
 | |
| 导出 VPN 路由时应用 BGP 导出策略。 选择 
 | |
| 允许不通告从同一自治系统接收的路由。 选择 
 | |
| 将聚合器路径属性中的路由器 ID 设置为 0。 选择 
 | |
| 禁用集群内路由重分发。 选择 
 | |
| 为此客户端组启用最佳路由反射。 | |
| 此客户端组的备份节点标识符。 | |
| 此客户端组的主节点标识符。 | |
| 指定从路由表导出路由之前的时间。 | |
| 动态协商的协作路由过滤。 | |
| 使用 BGP ORF 能力代码 130 和前缀 ORF 类型 128。 选择 
 | |
| 基于前缀的出站路由过滤。 | |
| 遵守来自远程对等体的基于前缀的 ORF。 | |
| 遵守 IPv4 前缀过滤器。 选择 
 | |
| 遵守 IPv6 前缀过滤器。 选择 
 | |
| 设置遵守来自远程对等体的基于前缀的 ORF。 选择 
 | |
| 设置基于前缀的出站路由过滤。 选择 
 | |
| 指定不向对等体发送打开消息。 选择 
 | |
| 指定自治系统号,格式为纯数字或“高 16 位”.“低 16 位”。 | |
| 指定首选项值。 | |
| 删除众所周知的私有 AS 号。 | |
| 删除所有私有 AS 号,并且不停止在第一个公共 AS 号。 选择 
 | |
| 指定私有 AS 替换。 选择 
 | |
| 使用最近的公共 AS 号替换私有 AS 号。 选择 
 | |
| 删除对等体环路检查。 选择 
 | |
| 删除众所周知的私有 AS 号。 选择 
 | |
| 指定符合 RFC6514 SAFI129 格式。 选择 
 | |
| 启用路由服务器客户端行为。 选择 
 | |
| 启用纯 TCP ACK 和重传的积极传输。 选择 
 | |
| 指定最大 TCP 段大小。 | |
| 配置 BGP 的跟踪选项。 | |
| 指定跟踪文件选项。 | |
| 指定写入跟踪信息的文件名。 | |
| 指定跟踪文件的最大数量。 | |
| 不允许任何用户读取日志文件。 选择 
 | |
| 指定最大跟踪文件大小。 | |
| 允许任何用户读取日志文件。 选择 
 | |
| 指定跟踪参数。 | |
| 跟踪详细信息。 选择 
 | |
| 禁用此跟踪标志。 选择 
 | |
| 应用于此标志的过滤器。 | |
| 指定基于前缀的过滤器。 选择 
 | |
| 指定过滤器策略。 | |
| 设置应用于此标志的过滤器。 选择 
 | |
| 指定事件名称 选择 
 | |
| 跟踪接收到的数据包。 选择 
 | |
| 跟踪传输的数据包。 选择 
 | |
| 指定单跳对等体的 TTL 值。 | |
| 指定 BGP 组类型。 选择 
 | |
| 指定 BGP 未配置的对等体平滑重启选项。 选择 
 | |
| 导出 VPN 路由时应用 BGP 导出策略。 选择 
 | |
| 指定与对等体协商时使用的保持时间。 | |
| 保持所有 BGP 过时标签,方便新标签通告的“先做后断”。 选择 
 | |
| 在不间断路由切换后停止对等会话启动。 | |
| 使对等体保持空闲状态,直到用户干预。 选择 
 | |
| 指定切换后启动对等体的超时值(秒)。 | |
| 指定导入策略。 | |
| 在多协议更新中包含 NEXT-HOP 属性。 选择 
 | |
| 指定 IPSec SA 名称。 | |
| 指定如何在路由表中保留路由。 选择 
 | |
| 指定 BGP 会话本地端的地址。 | |
| 本地自治系统号。 | |
| 将此 AS 视为系统 AS 的别名。 选择 
 | |
| 自治系统号,格式为纯数字或(asdot 表示法)。 | |
| 此 AS 在 AS 路径中可以出现的最大次数。 | |
| 此 AS 在 AS 路径中可以出现的最大次数。 选择 
 | |
| 隐藏从此对等连接获知的路径中的此本地 AS。 选择 
 | |
| 为 IPv6 链路本地 EBGP 对等连接指定本地接口。 | |
| 指定 LOCAL_PREF 路径属性的值。 | |
| 启用记录对等体状态转换的消息。 选择 
 | |
| 指定此 AS 在 AS 路径中可以出现的最大次数。 | |
| 指定 MED 中发送的路由度量。 | |
| 跟踪 IGP 度量。 | |
| 当 IGP 度量增加时延迟更新 MED。 选择 
 | |
| 指定 MED 的度量偏移。 | |
| 设置跟踪 IGP 度量。 选择 
 | |
| 指定度量值。 | |
| 跟踪最小 IGP 度量。 | |
| 指定 MED 的度量偏移。 | |
| 设置跟踪最小 IGP 度量。 选择 
 | |
| 启用 TCP 路径 MTU 发现。 选择 
 | |
| 配置 EBGP 多跳会话。 | |
| 在通告中不要将下一跳更改为自身。 选择 
 | |
| 设置 EBGP 多跳会话。 选择 
 | |
| 会话的 TTL 值。 | |
| 允许在多个 BGP 路径之间进行负载均衡。 | |
| 禁用多路径。 选择 
 | |
| 使用从不同 AS 接收的路径。 选择 
 | |
| 禁用多路径。 选择 
 | |
| 设置允许在多个 BGP 路径之间进行负载均衡。 选择 
 | |
| 配置多路径构建优先级。 选择 
 | |
| 允许不通告从同一自治系统接收的路由。 选择 
 | |
| 将聚合器路径属性中的路由器 ID 设置为 0。 选择 
 | |
| 禁用集群内路由重分发。 选择 
 | |
| 指定不使用精确计时器来调度保持活动。 选择 
 | |
| 指定从路由表导出路由之前的时间。 | |
| 动态协商的协作路由过滤。 | |
| 使用 BGP ORF 能力代码 130 和前缀 ORF 类型 128。 选择 
 | |
| 基于前缀的出站路由过滤。 | |
| 遵守来自远程对等体的基于前缀的 ORF。 | |
| 遵守 IPv4 前缀过滤器。 选择 
 | |
| 遵守 IPv6 前缀过滤器。 选择 
 | |
| 设置遵守来自远程对等体的基于前缀的 ORF。 选择 
 | |
| 设置基于前缀的出站路由过滤。 选择 
 | |
| 用于更新的 BGP 输出队列优先级调度程序。 | |
| 映射策略的优先级类和 BGP 输出队列。 | |
| 将“高”优先级类分配给此输出队列。 | |
| 加急队列;最高优先级。 选择 
 | |
| 指定输出队列优先级。 | |
| 将“低”优先级类分配给此输出队列。 | |
| 加急队列;最高优先级。 选择 
 | |
| 指定输出队列优先级。 | |
| 将“中”优先级类分配给此输出队列。 | |
| 加急队列;最高优先级。 选择 
 | |
| 指定输出队列优先级。 | |
| 加急队列;最高优先级,用于令牌数量。 | |
| 输出队列优先级;越高越好。 | |
| 指定优先级。 | |
| 指定 update_tokens。 | |
| 指定不向对等体发送打开消息。 选择 
 | |
| 配置路径选择策略。 | |
| 比较来自不同 AS 的路径上的 MED。 选择 
 | |
| 在路径选择期间忽略 AS 路径比较。 选择 
 | |
| 使用 Cisco IOS 非确定性路径选择算法。 选择 
 | |
| 比较 BGP 外部上的路由器 ID。 选择 
 | |
| 在 L2VPN 路径选择期间使用标准 BGP 规则。 选择 
 | |
| 在比较 MED 值之前,将 IGP 成本添加到下一跳的 MED。 | |
| 指定下一跳 IGP 成本的乘数。 | |
| 指定 MED 的乘数。 | |
| 设置 med-plus-igp 属性。 选择 
 | |
| 指定自治系统号,格式为纯数字或“高 16 位”.“低 16 位”。 | |
| 使用精确计时器来调度保持活动。 选择 
 | |
| 指定首选项值。 | |
| 删除众所周知的私有 AS 号。 | |
| 删除所有私有 AS 号,并且不停止在第一个公共 AS 号。 选择 
 | |
| 指定私有 AS 替换。 选择 
 | |
| 使用最近的公共 AS 号替换私有 AS 号。 选择 
 | |
| 删除对等体环路检查。 选择 
 | |
| 删除众所周知的私有 AS 号。 选择 
 | |
| 指定符合 RFC6514 SAFI129 格式。 选择 
 | |
| 启用路由服务器客户端行为。 选择 
 | |
| 启用 BGP addpath 通告优化。 选择 
 | |
| 专门为 BGP MIB 自定义 SNMP 行为。 | |
| 将向后转换的陷阱限制为仅从“已建立”状态移动的陷阱。 选择 
 | |
| 在 InetAddress MIB 类型的 OID 中发出长度。 选择 
 | |
| 将接收到的段路由流量工程首选项值替换为覆盖值。 | |
| 指定 BGP 分配的 MPLS 标签在过时后保留的持续时间(秒)。 | |
| 启用纯 TCP ACK 和重传的积极传输。 选择 
 | |
| 指定最大 TCP 段大小。 | |
| 配置 BGP 的跟踪选项。 | |
| 指定跟踪文件选项。 | |
| 指定写入跟踪信息的文件名。 | |
| 指定跟踪文件的最大数量。 | |
| 不允许任何用户读取日志文件。 选择 
 | |
| 指定最大跟踪文件大小。 | |
| 允许任何用户读取日志文件。 选择 
 | |
| 指定跟踪参数。 | |
| 跟踪详细信息。 选择 
 | |
| 禁用此跟踪标志。 选择 
 | |
| 应用于此标志的过滤器。 | |
| 指定基于前缀的过滤器。 选择 
 | |
| 指定过滤器策略。 | |
| 设置应用于此标志的过滤器。 选择 
 | |
| 指定事件名称 选择 
 | |
| 跟踪接收到的数据包。 选择 
 | |
| 跟踪传输的数据包。 选择 
 | |
| 为 BGP 标签交换路径收集定期的入口标签统计信息。 | |
| 指定统计文件选项。 | |
| 指定写入跟踪信息的文件名。 | |
| 指定跟踪文件的最大数量。 | |
| 不允许任何用户读取日志文件。 选择 
 | |
| 指定最大跟踪文件大小。 | |
| 允许任何用户读取日志文件。 选择 
 | |
| 指定收集统计信息的时间间隔。 | |
| 指定单跳对等体的 TTL 值。 | |
| 指定 BGP 未配置的对等体平滑重启选项。 选择 
 | |
| 导出 VPN 路由时应用 BGP 导出策略。 选择 
 | |
| 此选项仅在状态为已解析时使用。 此选项的值应该是通过执行命令 **show protocols bgp** 从 Junos 设备收到的输出。 状态已解析从 | |
| 配置应保留的状态。 状态已清除会从目标设备中删除所有(routing-options autonomous-system、bgp global、bgp groups、bgp neighbors、bgp family 以及 bgp group 和 neighbor family)BGP 配置。使用此状态时请谨慎。 状态已删除仅删除此模块管理的 BGP 属性,并且不会完全否定 BGP 进程。因此,保留 BGP 上下文下的地址系列相关配置。 如果邻居下存在地址系列配置行,则运行状态已删除和已替换将导致错误。请使用junipernetworks.junos.junos_bgp_address_family模块进行预先清理。 有关更多详细信息,请参阅示例。 选择 
 | 
注释
注意
- 此模块要求在被管理的设备上启用 netconf 系统服务。 
- 此模块与连接 - netconf一起工作。请参阅 Junos OS 平台选项。
- 已在 JunOS v18.4R1 版本上测试。 
示例
# Using merged
#
# Before state:
# -------------
#
# vsrx# show bgp summary
# BGP is not running
# vsrx# show routing-options autonomous-system
- name: Merge provided bgp config with device configuration
  junipernetworks.junos.junos_bgp_global:
    config:
      as_number: "65534"
      loops: 3
      asdot_notation: true
      accept_remote_nexthop: true
      add_path_display_ipv4_address: true
      advertise_from_main_vpn_tables: true
      advertise_inactive: true
      authentication_algorithm: "md5"
      bgp_error_tolerance:
        malformed_route_limit: 20000000
      bmp:
        monitor: true
      damping: true
      description: "This is configured with Junos_bgp resource module"
      egress_te_sid_stats: true
      hold_time: 5
      holddown_all_stale_labels: true
      include_mp_next_hop: true
      log_updown: true
      no_advertise_peer_as: true
      no_aggregator_id: true
      no_client_reflect: true
      out_delay: 10
      precision_timers: true
      preference: 2
    state: merged
# Task Output:
# ------------
# before: {}
#
# commands:
# - <nc:protocols xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"><nc:bgp><nc:accept-remote-nexthop/>
#   <nc:add-path-display-ipv4-address/><nc:advertise-from-main-vpn-tables/><nc:advertise->
# - <nc:routing-options xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0">
#   <nc:autonomous-system>65534<nc:loops>3</nc:loops><nc:asdot-notation/></nc:autonomous-system></nc:routing-options>
#
# after:
#   accept_remote_nexthop: true
#   add_path_display_ipv4_address: true
#   advertise_from_main_vpn_tables: true
#   advertise_inactive: true
#   as_number: '65534'
#   asdot_notation: true
#   authentication_algorithm: md5
#   bgp_error_tolerance:
#     malformed_route_limit: 20000000
#   bmp:
#     monitor: true
#   damping: true
#   description: This is configured with Junos_bgp resource module
#   egress_te_sid_stats: true
#   hold_time: 5
#   holddown_all_stale_labels: true
#   include_mp_next_hop: true
#   log_updown: true
#   loops: 3
#   no_advertise_peer_as: true
#   no_aggregator_id: true
#   no_client_reflect: true
#   out_delay: 10
#   precision_timers: true
#   preference: '2'
# After state:
# ------------
#
# vsrx# show routing-options autonomous-system
# 65534 loops 3 asdot-notation;
# vsrx# show protocols bgp
# precision-timers;
# advertise-from-main-vpn-tables;
# holddown-all-stale-labels;
# description "This is configured with Junos_bgp resource module";
# accept-remote-nexthop;
# preference 2;
# hold-time 5;
# advertise-inactive;
# no-advertise-peer-as;
# no-aggregator-id;
# out-delay 10;
# log-updown;
# damping;
# bgp-error-tolerance {
#     malformed-route-limit 20000000;
# }
# authentication-algorithm md5;
# no-client-reflect;
# include-mp-next-hop;
# bmp {
#     monitor enable;
# }
# add-path-display-ipv4-address;
# egress-te-sid-stats;
# Using replaced
#
# Before state:
# -------------
#
# vsrx# show routing-options autonomous-system
# [edit]
# vsrx# show protocols bgp
# precision-timers;
# advertise-from-main-vpn-tables;
# holddown-all-stale-labels;
# description "This is configured with Junos_bgp resource module";
# accept-remote-nexthop;
# preference 2;
# hold-time 5;
# advertise-inactive;
# no-advertise-peer-as;
# no-aggregator-id;
# out-delay 10;
# log-updown;
# damping;
# bgp-error-tolerance {
#     malformed-route-limit 20000000;
# }
# authentication-algorithm md5;
# no-client-reflect;
# include-mp-next-hop;
# bmp {
#     monitor enable;
# }
# add-path-display-ipv4-address;
# egress-te-sid-stats;
- name: Replace running config with provided config
  junipernetworks.junos.junos_bgp_global:
    config:
      advertise_inactive: true
      authentication_algorithm: "md5"
      bfd_liveness_detection:
        minimum_receive_interval: 8
        multiplier: 30
        no_adaptation: true
        transmit_interval:
          minimum_interval: 4
        version: "automatic"
      bgp_error_tolerance:
        malformed_route_limit: 40000000
      description: "Replace running bgp config"
      egress_te_sid_stats: true
      hold_time: 5
      out_delay: 10
      preference: "2"
    state: replaced
# Task Output:
# ------------
#
# before:
#   accept_remote_nexthop: true
#   add_path_display_ipv4_address: true
#   advertise_from_main_vpn_tables: true
#   advertise_inactive: true
#   as_number: '65534'
#   asdot_notation: true
#   authentication_algorithm: md5
#   bgp_error_tolerance:
#     malformed_route_limit: 20000000
#   bmp:
#     monitor: true
#   damping: true
#   description: This is configured with Junos_bgp resource module
#   egress_te_sid_stats: true
#   hold_time: 5
#   holddown_all_stale_labels: true
#   include_mp_next_hop: true
#   log_updown: true
#   loops: 3
#   no_advertise_peer_as: true
#   no_aggregator_id: true
#   no_client_reflect: true
#   out_delay: 10
#   precision_timers: true
#   preference: '2'
# commands:
# - <nc:protocols xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"><nc:bgp>
#   <nc:accept-remote-nexthop delete="delete"/><nc:add-path-display-ipv4-address delete="delete"/><nc:advertise-bgp-t
#   delete="delete"/><nc:include-mp-next-hop delete="delete"/><nc:ipsec-sa delete="delete"/><nc:keep delete="delete"/>
#   <nc:local-address delete="delete"/><nc:local-interface delete="delete"/t
#   delete="delete"/></nc:bgp><nc:bgp><nc:advertise-inactive/><nc:egress-te-sid-stats/>
#   <nc:authentication-algorithm>md5</nc:authentication-algorithm><nc:description>Replace running bgp conf>
# - <nc:routing-options xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"><nc:autonomous-system delete="delete"/></nc:routing-options>
#
# after:
#   advertise_inactive: true
#   authentication_algorithm: md5
#   bfd_liveness_detection:
#     minimum_receive_interval: 8
#     multiplier: 30
#     no_adaptation: true
#     transmit_interval:
#       minimum_interval: 4
#     version: automatic
#   bgp_error_tolerance:
#     malformed_route_limit: 40000000
#   description: Replace running bgp config
#   egress_te_sid_stats: true
#   hold_time: 5
#   out_delay: 10
#   preference: '2'
# After state:
# ------------
#
# varx# show protocols bgp
# description "Replace running bgp config";
# preference 2;
# hold-time 5;
# advertise-inactive;
# out-delay 10;
# bgp-error-tolerance {
#     malformed-route-limit 40000000;
# }
# authentication-algorithm md5;
# bfd-liveness-detection {
#     version automatic;
#     minimum-receive-interval 8;
#     multiplier 30;
#     no-adaptation;
#     transmit-interval {
#         minimum-interval 4;
#     }
# }
# egress-te-sid-stats;
# vsrx# show routing-options autonomous-system
# Using overridden
# "(NOTE: This will work same as replaced operation)"
#
# Before state:
# -------------
#
# vsrx# show routing-options autonomous-system
# [edit]
# vsrx# show protocols bgp
# precision-timers;
# advertise-from-main-vpn-tables;
# holddown-all-stale-labels;
# description "This is configured with Junos_bgp resource module";
# accept-remote-nexthop;
# preference 2;
# hold-time 5;
# advertise-inactive;
# no-advertise-peer-as;
# no-aggregator-id;
# out-delay 10;
# log-updown;
# damping;
# bgp-error-tolerance {
#     malformed-route-limit 20000000;
# }
# authentication-algorithm md5;
# no-client-reflect;
# include-mp-next-hop;
# bmp {
#     monitor enable;
# }
# add-path-display-ipv4-address;
# egress-te-sid-stats;
- name: Override running config with provided config
  junipernetworks.junos.junos_bgp_global:
    config:
      advertise_inactive: true
      authentication_algorithm: "md5"
      bfd_liveness_detection:
        minimum_receive_interval: 8
        multiplier: 30
        no_adaptation: true
        transmit_interval:
          minimum_interval: 4
        version: "automatic"
      bgp_error_tolerance:
        malformed_route_limit: 40000000
      description: "Replace running bgp config"
      egress_te_sid_stats: true
      hold_time: 5
      out_delay: 10
      preference: "2"
    state: overridden
# Task Output:
# ------------
#
# before:
#   accept_remote_nexthop: true
#   add_path_display_ipv4_address: true
#   advertise_from_main_vpn_tables: true
#   advertise_inactive: true
#   as_number: '65534'
#   asdot_notation: true
#   authentication_algorithm: md5
#   bgp_error_tolerance:
#     malformed_route_limit: 20000000
#   bmp:
#     monitor: true
#   damping: true
#   description: This is configured with Junos_bgp resource module
#   egress_te_sid_stats: true
#   hold_time: 5
#   holddown_all_stale_labels: true
#   include_mp_next_hop: true
#   log_updown: true
#   loops: 3
#   no_advertise_peer_as: true
#   no_aggregator_id: true
#   no_client_reflect: true
#   out_delay: 10
#   precision_timers: true
#   preference: '2'
# commands:
# - <nc:protocols xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"><nc:bgp>
#   <nc:accept-remote-nexthop delete="delete"/><nc:add-path-display-ipv4-address delete="delete"/><nc:advertise-bgp-t
#   delete="delete"/><nc:include-mp-next-hop delete="delete"/><nc:ipsec-sa delete="delete"/><nc:keep delete="delete"/>
#   <nc:local-address delete="delete"/><nc:local-interface delete="delete"/t
#   delete="delete"/></nc:bgp><nc:bgp><nc:advertise-inactive/><nc:egress-te-sid-stats/>
#   <nc:authentication-algorithm>md5</nc:authentication-algorithm><nc:description>Replace running bgp conf>
# - <nc:routing-options xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"><nc:autonomous-system delete="delete"/></nc:routing-options>
#
# after:
#   advertise_inactive: true
#   authentication_algorithm: md5
#   bfd_liveness_detection:
#     minimum_receive_interval: 8
#     multiplier: 30
#     no_adaptation: true
#     transmit_interval:
#       minimum_interval: 4
#     version: automatic
#   bgp_error_tolerance:
#     malformed_route_limit: 40000000
#   description: Replace running bgp config
#   egress_te_sid_stats: true
#   hold_time: 5
#   out_delay: 10
#   preference: '2'
# After state:
# ------------
#
# varx# show protocols bgp
# description "Replace running bgp config";
# preference 2;
# hold-time 5;
# advertise-inactive;
# out-delay 10;
# bgp-error-tolerance {
#     malformed-route-limit 40000000;
# }
# authentication-algorithm md5;
# bfd-liveness-detection {
#     version automatic;
#     minimum-receive-interval 8;
#     multiplier 30;
#     no-adaptation;
#     transmit-interval {
#         minimum-interval 4;
#     }
# }
# egress-te-sid-stats;
# vsrx# show routing-options autonomous-system
# Using deleted
# "(NOTE: This WILL delete the bgp global attributes)"
# Before state
# ------------
#
# vsrx# show protocols bgp
# description "Replace running bgp config";
# preference 2;
# hold-time 5;
# advertise-inactive;
# out-delay 10;
# bgp-error-tolerance {
#     malformed-route-limit 40000000;
# }
# authentication-algorithm md5;
# bfd-liveness-detection {
#     version automatic;
#     minimum-receive-interval 8;
#     multiplier 30;
#     no-adaptation;
#     transmit-interval {
#         minimum-interval 4;
#     }
# }
# egress-te-sid-stats;
- name: Delete bgp section of running config
  junipernetworks.junos.junos_bgp_global:
    config:
    state: deleted
# Task Output:
# ------------
# before:
#   advertise_inactive: true
#   authentication_algorithm: md5
#   bfd_liveness_detection:
#     minimum_receive_interval: 8
#     multiplier: 30
#     no_adaptation: true
#     transmit_interval:
#       minimum_interval: 4
#     version: automatic
#   bgp_error_tolerance:
#     malformed_route_limit: 40000000
#   description: Replace running bgp config
#   egress_te_sid_stats: true
#   hold_time: 5
#   out_delay: 10
#   preference: '2'
# commands:
# - <nc:protocols xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"><nc:bgp><nc:accept-remote-nexthop delete="delete"/>
#   <nc:add-path-display-ipv4-address delete="delete"/><nc:advertise-bgp-t
#   delete="delete"/><nc:include-mp-next-hop delete="delete"/><nc:ipsec-sa delete="delete"/><nc:keep delete="delete"/>
#   <nc:local-address delete="delete"/><nc:local-interface delete="delete"/t
#   delete="delete"/></nc:bgp></nc:protocols>
# - <nc:routing-options xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"/>
# after: {}
# After state:
# ------------
# vsrx# show protocols bgp
# vsrx# show routing-options autonomous-system
# Using gathered
#
# Before state:
# -------------
#
# vsrx# show protocols bgp
# precision-timers;
# advertise-from-main-vpn-tables;
# holddown-all-stale-labels;
# description "This is configured with Junos_bgp resource module";
# accept-remote-nexthop;
# preference 2;
# hold-time 5;
# advertise-inactive;
# no-advertise-peer-as;
# no-aggregator-id;
# out-delay 10;
# log-updown;
# damping;
# bgp-error-tolerance {
#     malformed-route-limit 20000000;
# }
# authentication-algorithm md5;
# no-client-reflect;
# include-mp-next-hop;
# bmp {
#     monitor enable;
# }
# add-path-display-ipv4-address;
# egress-te-sid-stats;
- name: Gather BGP facts from running config
  junipernetworks.junos.junos_bgp_global:
    config:
    state: gathered
# Task Output:
# ------------
# gathered:
#   accept_remote_nexthop: true
#   add_path_display_ipv4_address: true
#   advertise_from_main_vpn_tables: true
#   advertise_inactive: true
#   as_number: '65534'
#   asdot_notation: true
#   authentication_algorithm: md5
#   bgp_error_tolerance:
#     malformed_route_limit: 20000000
#   bmp:
#     monitor: true
#   damping: true
#   description: This is configured with Junos_bgp resource module
#   egress_te_sid_stats: true
#   hold_time: 5
#   holddown_all_stale_labels: true
#   include_mp_next_hop: true
#   log_updown: true
#   loops: 3
#   no_advertise_peer_as: true
#   no_aggregator_id: true
#   no_client_reflect: true
#   out_delay: 10
#   precision_timers: true
#   preference: '2'
# Using purged
# "(NOTE: This WILL delete the configured global BGP, and BGP address family config)"
# Before state:
# -------------
#
# vsrx# show protocols bgp
# precision-timers;
# advertise-from-main-vpn-tables;
# holddown-all-stale-labels;
# description "This is configured with Junos_bgp resource module";
# accept-remote-nexthop;
# preference 2;
# hold-time 5;
# advertise-inactive;
# no-advertise-peer-as;
# no-aggregator-id;
# out-delay 10;
# log-updown;
# damping;
# bgp-error-tolerance {
#     malformed-route-limit 20000000;
# }
# authentication-algorithm md5;
# no-client-reflect;
# include-mp-next-hop;
# bmp {
#     monitor enable;
# }
# add-path-display-ipv4-address;
# egress-te-sid-stats;
- name: Purge BGP config from running config
  junipernetworks.junos.junos_bgp_global:
    config:
    state: purged
# Task Output:
# ------------
# before:
#   accept_remote_nexthop: true
#   add_path_display_ipv4_address: true
#   advertise_from_main_vpn_tables: true
#   advertise_inactive: true
#   as_number: '65534'
#   asdot_notation: true
#   authentication_algorithm: md5
#   bgp_error_tolerance:
#     malformed_route_limit: 20000000
#   bmp:
#     monitor: true
#   damping: true
#   description: This is configured with Junos_bgp resource module
#   egress_te_sid_stats: true
#   hold_time: 5
#   holddown_all_stale_labels: true
#   include_mp_next_hop: true
#   log_updown: true
#   loops: 3
#   no_advertise_peer_as: true
#   no_aggregator_id: true
#   no_client_reflect: true
#   out_delay: 10
#   precision_timers: true
#   preference: '2'
# commands:
# - <nc:protocols xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"><nc:bgp delete="delete"/></nc:protocols>
# - <nc:routing-options xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0">
#   <nc:autonomous-system delete="delete"/></nc:routing-options>
# after: {}
# After state:
# ------------
# vsrx# show protocols bgp
# vsrx# show routing-options autonomous-system
# Using rendered
- name: Render the commands for provided configuration
  junipernetworks.junos.junos_bgp_global:
    config:
      as_number: "65534"
      loops: 3
      asdot_notation: true
      accept_remote_nexthop: true
      add_path_display_ipv4_address: true
      advertise_from_main_vpn_tables: true
      advertise_inactive: true
      authentication_algorithm: "md5"
      bgp_error_tolerance:
        malformed_route_limit: 20000000
      bmp:
        monitor: true
      damping: true
      description: "This is configured with Junos_bgp resource module"
      egress_te_sid_stats: true
      hold_time: 5
      holddown_all_stale_labels: true
      include_mp_next_hop: true
      log_updown: true
      no_advertise_peer_as: true
      no_aggregator_id: true
      no_client_reflect: true
      out_delay: 10
      precision_timers: true
      preference: 2
    state: rendered
# Task Output:
# ------------
# rendered:
# <nc:protocols xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0">
# <nc:bgp><nc:accept-remote-nexthop/><nc:add-path-display-ipv4-address/>
# <nc:advertise-from-main-vpn-tables/><nc:ad>
#
# Using parsed
# parsed.cfg
# ------------
# <?xml version="1.0" encoding="UTF-8"?>
# <rpc-reply message-id="urn:uuid:0cadb4e8-5bba-47f4-986e-72906227007f">
#    <configuration changed-seconds="1590139550" changed-localtime="2020-05-22 09:25:50 UTC">
#       <version>18.4R1-S2.4</version>
#       <protocols>
#          <bgp>
#             <precision-timers />
#             <advertise-from-main-vpn-tables />
#             <holddown-all-stale-labels />
#             <description>This is configured with Junos_bgp resource module</description>
#             <accept-remote-nexthop />
#             <preference>2</preference>
#             <hold-time>5</hold-time>
#             <advertise-inactive />
#             <no-advertise-peer-as />
#             <no-aggregator-id />
#             <out-delay>10</out-delay>
#             <log-updown />
#             <damping />
#             <bgp-error-tolerance>
#                <malformed-route-limit>20000000</malformed-route-limit>
#             </bgp-error-tolerance>
#             <authentication-algorithm>md5</authentication-algorithm>
#             <remove-private />
#             <no-client-reflect />
#             <include-mp-next-hop />
#             <bmp>
#                <monitor>disable</monitor>
#                <route-monitoring>
#                   <none />
#                </route-monitoring>
#             </bmp>
#             <advertise-bgp-static>
#                <policy>static-to-bgp</policy>
#             </advertise-bgp-static>
#             <add-path-display-ipv4-address />
#             <bfd-liveness-detection>
#                <version>automatic</version>
#                <minimum-receive-interval>4</minimum-receive-interval>
#                <multiplier>10</multiplier>
#                <no-adaptation />
#                <transmit-interval>
#                   <minimum-interval>2</minimum-interval>
#                </transmit-interval>
#                <detection-time>
#                   <threshold>300000</threshold>
#                </detection-time>
#             </bfd-liveness-detection>
#             <egress-te-sid-stats />
#             <group>
#                <name>internal</name>
#                <out-delay>8</out-delay>
#             </group>
#             <group>
#                <name>external</name>
#                <out-delay>9</out-delay>
#             </group>
#             <group>
#                <name>inboun</name>
#                <type>internal</type>
#             </group>
#             <group>
#                <name>ibgp</name>
#                <type>internal</type>
#                <local-address>10.2.2.2</local-address>
#                <export>static-to-bgp</export>
#                <neighbor>
#                   <name>10.1.1.1</name>
#                </neighbor>
#             </group>
#          </bgp>
#          <ospf3>
#             <area>
#                <name>0.0.0.100</name>
#                <stub>
#                   <default-metric>200</default-metric>
#                </stub>
#                <interface>
#                   <name>so-0/0/0.0</name>
#                   <metric>5</metric>
#                   <priority>3</priority>
#                </interface>
#             </area>
#          </ospf3>
#       </protocols>
#       <routing-options>
#          <static>
#             <route>
#                <name>172.16.17.0/24</name>
#                <discard />
#             </route>
#          </static>
#          <router-id>10.200.16.75</router-id>
#          <autonomous-system>
#             <as-number>65432</as-number>
#          </autonomous-system>
#       </routing-options>
#    </configuration>
# </rpc-reply>
- name: Parsed the device configuration to get ansible facts
  junipernetworks.junos.junos_bgp_global:
    running_config: "{{ lookup('file', './parsed.cfg') }}"
    state: parsed
# Task Output:
# ------------
# parsed:
#   accept_remote_nexthop: true
#   add_path_display_ipv4_address: true
#   advertise_bgp_static:
#     policy: static-to-bgp
#   advertise_from_main_vpn_tables: true
#   advertise_inactive: true
#   as_number: '65432'
#   authentication_algorithm: md5
#   bfd_liveness_detection:
#     detection_time:
#       threshold: 300000
#     minimum_receive_interval: 4
#     multiplier: 10
#     no_adaptation: true
#     transmit_interval:
#       minimum_interval: 2
#     version: automatic
#   bgp_error_tolerance:
#     malformed_route_limit: 20000000
#   bmp:
#     monitor: false
#     route_monitoring:
#       none: true
#   damping: true
#   description: This is configured with Junos_bgp resource module
#   egress_te_sid_stats: true
#   groups:
#   - name: internal
#     out_delay: 8
#   - name: external
#     out_delay: 9
#   - name: inboun
#     type: internal
#   - export: static-to-bgp
#     local_address: 10.2.2.2
#     name: ibgp
#     neighbors:
#     - neighbor_address: 10.1.1.1
#     type: internal
#   hold_time: 5
#   holddown_all_stale_labels: true
#   include_mp_next_hop: true
#   log_updown: true
#   no_advertise_peer_as: true
#   no_aggregator_id: true
#   no_client_reflect: true
#   out_delay: 10
#   precision_timers: true
#   preference: '2'
#   remove_private:
#     set: true
返回值
常见的返回值已在此处记录,以下是此模块独有的字段
| 键 | 描述 | 
|---|---|
| 生成的配置模型调用。 返回: 当发生更改时 示例:  | |
| 模型调用之前的配置。 返回: 始终 示例:  | |
| 推送到远程设备的命令集。 返回: 始终 示例:  | |
| 从远程设备收集的关于网络资源的结构化数据的事实。 返回: 当 state 为  示例:  | |
| running_config 选项中提供的设备原生配置,按照模块 argspec 解析为结构化数据。 返回: 当 state 为  示例:  | |
| 任务中提供的配置以设备原生格式(离线)渲染。 返回: 当 state 为  示例:  | 
