arista.eos.eos_bgp_global 模块 – 管理 BGP 全局资源模块
注意
此模块是 arista.eos 集合(版本 10.0.1)的一部分。
如果您使用的是 ansible
包,则可能已安装此集合。它不包含在 ansible-core
中。要检查它是否已安装,请运行 ansible-galaxy collection list
。
要安装它,请使用:ansible-galaxy collection install arista.eos
。
要在 playbook 中使用它,请指定:arista.eos.eos_bgp_global
。
arista.eos 1.4.0 中的新增功能
概要
此模块配置和管理 Arista EOS 平台上 BGP 全局属性。
参数
参数 |
注释 |
---|---|
BGP 全局配置列表。 |
|
IP/IPv6 访问列表配置。 |
|
访问列表名称。 |
|
指定 ip/ipv6。 选项
|
|
数据包方向。 |
|
配置聚合地址。 |
|
IPv4/IPv6 地址前缀。 |
|
仅通告,不安装生成的 blackhole 路由到 FIB。 选项
|
|
生成自治系统集合路径信息。 选项
|
|
用于设置聚合路由属性的路由映射名称。 |
|
用于过滤聚合路由贡献者的路由映射名称。 |
|
过滤更新中的所有更具体的路由。 选项
|
|
自治系统编号。 |
|
BGP 参数。 |
|
BGP additional-paths 命令 选项
|
|
即使路由在 RIB 中处于非活动状态,也通告 BGP 路由。 选项
|
|
允许在更新中使用本地 AS。 |
|
BGP 更新中允许的本地 ASN 数量。 |
|
为真时,设置。 选项
|
|
BGP 始终比较 MED 选项
|
|
AS 号记法。 选项
|
|
自动确定用于非传输 AF 的本地地址。 选项
|
|
选择 BGP 路由的最佳路径选择算法。 |
|
基于 as-path 选择最佳路径。 选项
|
|
基于到达顺序,打破 ECMP 组中 BGP 路径的平衡。 选项
|
|
MED 属性 |
|
MED 联盟。 选项
|
|
MED missing-as-worst。 选项
|
|
跳过最佳路径选择中的一个 tie breaking 规则。 选项
|
|
配置 BGP 最佳路径选择的 tie-break 选项。 选项
|
|
客户端到客户端配置。 选项
|
|
充当路由反射器的此路由器的集群 ID。 |
|
联盟。 |
|
联盟标识符。 |
|
联盟对等体。 |
|
BGP 的控制平面过滤器。 选项
|
|
BGP 收敛参数。 |
|
等待慢速对等体建立会话的最大时间。 选项
|
|
以秒为单位的时间 |
|
默认邻居配置命令。 选项
|
|
对 EBGP 路由强制执行第一个 AS(默认值)。 选项
|
|
BGP 主机路由配置。 选项
|
|
标记单播。 选项
|
|
BGP 侦听。 |
|
设置允许的动态 BGP 对等体的数量限制。 |
|
与对等体组关联的子网范围。 |
|
地址前缀 |
|
对等体组名称。 |
|
名称。 |
|
对等体过滤器的名称。 |
|
邻居 AS 号 |
|
记录邻居上下事件。 选项
|
|
缺少策略覆盖配置命令。 |
|
缺少策略操作选项。 选项
|
|
缺少策略方向选项。 选项
|
|
为所有/指定的站点启用 BGP 监控。 选项
|
|
在向 eBGP 对等体通告路由时保留原始 nexthop。 选项
|
|
重新分发内部 BGP 路由。 选项
|
|
配置用于路由安装的路由映射。 |
|
配置路由反射器选项 |
|
保留路由属性,覆盖路由映射更改 选项
|
|
为真时,设置 route_reflector。 选项
|
|
配置 TCP 会话的传输端口 |
|
默认度量。 |
|
定义管理距离。 |
|
外部路由的距离。 |
|
内部路由的距离。 |
|
本地路由的距离。 |
|
启用优雅重启模式。 |
|
设置重启并恢复所需的最多时间。 |
|
如果为真,则设置优雅重启。 选项
|
|
设置保持重启对等体过期路径的最大时间。 |
|
启用优雅重启辅助模式。 选项
|
|
等代价路径的最大数量。 |
|
等代价路径的最大数量值。 |
|
已安装ECMP路由的最大数量值。 |
|
BGP监控协议配置。 |
|
配置BGP监控协议端口号<1024-65535>。 |
|
BGP监控协议接收路由选择。 选项
|
|
BGP监控站配置。 |
|
BGP监控协议每对等体报头时间戳行为。 选项
|
|
配置网络路由。 |
|
BGP附加路径命令。 选项
|
|
允许在更新中使用本地 AS。 |
|
BGP 更新中允许的本地 ASN 数量。 |
|
为真时,设置。 选项
|
|
自动确定用于非传输 AF 的本地地址。 选项
|
|
为此对等体配置BFD故障转移。 选项
|
|
向此邻居发送默认路由。 |
|
始终向此邻居发送默认路由。 选项
|
|
路由映射引用。 |
|
描述邻居的文本。 |
|
不与该邻居执行能力协商。 选项
|
|
允许BGP连接到间接连接的外部对等体。 |
|
如果为真,则不设置ttl。 选项
|
|
生存时间,范围为1-255跳。 |
|
用于计算MD5哈希的密码。 |
|
密码(最多80个字符)。 |
|
加密类型。 选项
|
|
对 EBGP 路由强制执行第一个 AS(默认值)。 选项
|
|
导出到内部对等体时覆盖localpref。 |
|
为此对等体配置BFD协议选项。 选项
|
|
启用优雅重启模式。 选项
|
|
启用优雅重启辅助模式。 选项
|
|
邻居空闲重启计时器。 |
|
从外部对等体导入时覆盖localpref。 |
|
为此对等体的路由启用链路带宽社区。 |
|
为此对等体的路由启用链路带宽自动生成。 选项
|
|
为此对等体的路由启用链路带宽默认生成。 |
|
如果为真,则设置链路带宽。 选项
|
|
延迟出站路由更新。 |
|
配置通告给对等体的本地AS号。 |
|
AS号。 |
|
优先使用路由器AS号而不是本地AS号。 选项
|
|
邻居的本地IPv6地址,格式为A:B:C:D:E:F:G:H。 |
|
从此对等体接受的路由最大数量。 |
|
接受的路由最大数量(0表示无限制)。 |
|
发出警告之前接受的路由最大数量。(0表示从不警告) |
|
从此对等体接收的路由最大数量。 |
|
路由的最大数量(0表示无限制)。 |
|
发出警告的路由最大数量的百分比。 |
|
发出警告的路由数量。 |
|
发出警告的路由最大数量的百分比(1-100)。 |
|
如果超过最大路由限制,则只警告,不重启。 选项
|
|
通告给对等体的MED值。 |
|
为此对等体启用BGP监控协议。 选项
|
|
邻居地址或对等体组。 |
|
始终通告此路由器的地址作为BGP下一跳。 选项
|
|
在向 eBGP 对等体通告路由时保留原始 nexthop。 选项
|
|
邻居的IPv6下一跳地址。 |
|
延迟出站路由更新。 |
|
对等体组的名称。 |
|
前缀列表引用。 |
|
配置入站/出站前缀列表。 选项
|
|
前缀列表名称。 |
|
邻居自治系统。 |
|
从更新中删除发送给此对等体的私有AS号。 |
|
删除私有AS号。 选项
|
|
用本地AS号替换私有AS号。 选项
|
|
如果为真,则设置remove_private_as。 选项
|
|
路由映射引用。 |
|
配置入站/出站路由映射。 选项
|
|
路由映射名称。 |
|
配置对等体作为路由反射器客户端。 选项
|
|
使用路由表信息来访问对等体。 选项
|
|
向此邻居发送社区属性。 |
|
发送给此邻居的社区属性类型。 |
|
链路带宽划分属性。 选项
|
|
要发送的累积/聚合属性。 选项
|
|
启用send-community。 选项
|
|
参考链路速度,单位为比特/秒。 |
|
要发送给邻居的属性。 选项
|
|
在管理上关闭此邻居。 选项
|
|
配置如何处理导入失败的路由。 选项
|
|
计时器。 |
|
保持时间(秒)。 |
|
保持活动间隔(秒)。 |
|
配置TCP会话的传输选项。 |
|
配置TCP会话的连接模式。 |
|
配置要连接到的BGP对等体TCP端口。 |
|
BGP ttl安全检查。 |
|
指定对等BGP会话的本地源接口。 |
|
要分配的权重。 |
|
配置网络路由。 |
|
地址前缀。 |
|
路由映射的名称。 |
|
将路由重新分发到BGP。 |
|
适用于ISIS路由。指定ISIS路由级别。 选项
|
|
OSPF路由选项。 选项
|
|
要重新分发的路由。 选项
|
|
路由映射引用。 |
|
路由目标。 |
|
路由操作。 选项
|
|
路由目标。 |
|
路由器ID。 |
|
如果为true,则关闭BGP。 选项
|
|
计时器。 |
|
保持时间(秒)。 |
|
保持活动间隔(秒)。 |
|
配置不等代价多路径。 |
|
配置UCMP FEC利用率阈值。 |
|
清除UCMP FEC利用率阈值。 |
|
UCMP FEC利用率过高阈值。 |
|
配置链路带宽传播延迟。 |
|
UCMP链路带宽模式 选项
|
|
链路带宽通告延迟。 |
|
UCMP模式。 |
|
UCMP下一跳总数的值。 |
|
如果为true,则将ucmp模式设置为1。 选项
|
|
配置BGP更新生成。 |
|
FIB路由确认的批量大小。 |
|
在收敛或同步之前等待选项。 选项
|
|
配置单VLAN支持的MAC VRF BGP。 |
|
配置多VLAN支持的MAC VRF BGP。 |
|
在VRF中配置BGP。 |
|
IP/IPv6 访问列表配置。 |
|
访问列表名称。 |
|
指定 ip/ipv6。 选项
|
|
数据包方向。 |
|
配置聚合地址。 |
|
IPv4/IPv6 地址前缀。 |
|
仅通告,不安装生成的 blackhole 路由到 FIB。 选项
|
|
生成自治系统集合路径信息。 选项
|
|
用于设置聚合路由属性的路由映射名称。 |
|
用于过滤聚合路由贡献者的路由映射名称。 |
|
过滤更新中的所有更具体的路由。 选项
|
|
BGP 参数。 |
|
BGP additional-paths 命令 选项
|
|
即使路由在 RIB 中处于非活动状态,也通告 BGP 路由。 选项
|
|
允许在更新中使用本地 AS。 |
|
BGP 更新中允许的本地 ASN 数量。 |
|
为真时,设置。 选项
|
|
BGP 始终比较 MED 选项
|
|
AS 号记法。 选项
|
|
自动确定用于非传输 AF 的本地地址。 选项
|
|
选择 BGP 路由的最佳路径选择算法。 |
|
基于 as-path 选择最佳路径。 选项
|
|
基于到达顺序,打破 ECMP 组中 BGP 路径的平衡。 选项
|
|
MED 属性 |
|
MED 联盟。 选项
|
|
MED missing-as-worst。 选项
|
|
跳过最佳路径选择中的一个 tie breaking 规则。 选项
|
|
配置 BGP 最佳路径选择的 tie-break 选项。 选项
|
|
客户端到客户端配置。 选项
|
|
充当路由反射器的此路由器的集群 ID。 |
|
联盟。 |
|
联盟标识符。 |
|
联盟对等体。 |
|
BGP 的控制平面过滤器。 选项
|
|
BGP 收敛参数。 |
|
等待慢速对等体建立会话的最大时间。 选项
|
|
以秒为单位的时间 |
|
默认邻居配置命令。 选项
|
|
对 EBGP 路由强制执行第一个 AS(默认值)。 选项
|
|
BGP 主机路由配置。 选项
|
|
标记单播。 选项
|
|
BGP 侦听。 |
|
设置允许的动态 BGP 对等体的数量限制。 |
|
与对等体组关联的子网范围。 |
|
地址前缀 |
|
对等体组名称。 |
|
名称。 |
|
对等体过滤器的名称。 |
|
邻居 AS 号 |
|
记录邻居上下事件。 选项
|
|
缺少策略覆盖配置命令。 |
|
缺少策略操作选项。 选项
|
|
缺少策略方向选项。 选项
|
|
为所有/指定的站点启用 BGP 监控。 选项
|
|
在向 eBGP 对等体通告路由时保留原始 nexthop。 选项
|
|
重新分发内部 BGP 路由。 选项
|
|
配置用于路由安装的路由映射。 |
|
配置路由反射器选项 |
|
保留路由属性,覆盖路由映射更改 选项
|
|
为真时,设置 route_reflector。 选项
|
|
配置 TCP 会话的传输端口 |
|
默认度量。 |
|
定义管理距离。 |
|
外部路由的距离。 |
|
内部路由的距离。 |
|
本地路由的距离。 |
|
启用优雅重启模式。 |
|
设置重启并恢复所需的最多时间。 |
|
如果为真,则设置优雅重启。 选项
|
|
设置保持重启对等体过期路径的最大时间。 |
|
启用优雅重启辅助模式。 选项
|
|
等代价路径的最大数量。 |
|
等代价路径的最大数量值。 |
|
已安装ECMP路由的最大数量值。 |
|
配置网络路由。 |
|
BGP附加路径命令。 选项
|
|
允许在更新中使用本地 AS。 |
|
BGP 更新中允许的本地 ASN 数量。 |
|
为真时,设置。 选项
|
|
自动确定用于非传输 AF 的本地地址。 选项
|
|
为此对等体配置BFD故障转移。 选项
|
|
向此邻居发送默认路由。 |
|
始终向此邻居发送默认路由。 选项
|
|
路由映射引用。 |
|
描述邻居的文本。 |
|
不与该邻居执行能力协商。 选项
|
|
允许BGP连接到间接连接的外部对等体。 |
|
如果为真,则不设置ttl。 选项
|
|
生存时间,范围为1-255跳。 |
|
用于计算MD5哈希的密码。 |
|
密码(最多80个字符)。 |
|
加密类型。 选项
|
|
对 EBGP 路由强制执行第一个 AS(默认值)。 选项
|
|
导出到内部对等体时覆盖localpref。 |
|
为此对等体配置BFD协议选项。 选项
|
|
启用优雅重启模式。 选项
|
|
启用优雅重启辅助模式。 选项
|
|
邻居空闲重启计时器。 |
|
从外部对等体导入时覆盖localpref。 |
|
为此对等体的路由启用链路带宽社区。 |
|
为此对等体的路由启用链路带宽自动生成。 选项
|
|
为此对等体的路由启用链路带宽默认生成。 |
|
如果为真,则设置链路带宽。 选项
|
|
延迟出站路由更新。 |
|
配置通告给对等体的本地AS号。 |
|
AS号。 |
|
优先使用路由器AS号而不是本地AS号。 选项
|
|
邻居的本地IPv6地址,格式为A:B:C:D:E:F:G:H。 |
|
从此对等体接受的路由最大数量。 |
|
接受的路由最大数量(0表示无限制)。 |
|
发出警告之前接受的路由最大数量。(0表示从不警告) |
|
从此对等体接收的路由最大数量。 |
|
路由的最大数量(0表示无限制)。 |
|
发出警告的路由最大数量的百分比。 |
|
发出警告的路由数量。 |
|
发出警告的路由最大数量的百分比(1-100)。 |
|
如果超过最大路由限制,则只警告,不重启。 选项
|
|
通告给对等体的MED值。 |
|
为此对等体启用BGP监控协议。 选项
|
|
邻居地址或对等体组。 |
|
始终通告此路由器的地址作为BGP下一跳。 选项
|
|
在向 eBGP 对等体通告路由时保留原始 nexthop。 选项
|
|
邻居的IPv6下一跳地址。 |
|
延迟出站路由更新。 |
|
对等体组的名称。 |
|
前缀列表引用。 |
|
配置入站/出站前缀列表。 选项
|
|
前缀列表名称。 |
|
邻居自治系统。 |
|
从更新中删除发送给此对等体的私有AS号。 |
|
删除私有AS号。 选项
|
|
用本地AS号替换私有AS号。 选项
|
|
如果为真,则设置remove_private_as。 选项
|
|
路由映射引用。 |
|
配置入站/出站路由映射。 选项
|
|
路由映射名称。 |
|
配置对等体作为路由反射器客户端。 选项
|
|
使用路由表信息来访问对等体。 选项
|
|
向此邻居发送社区属性。 |
|
发送给此邻居的社区属性类型。 |
|
链路带宽划分属性。 选项
|
|
要发送的累积/聚合属性。 选项
|
|
参考链路速度,单位为比特/秒。 |
|
要发送给邻居的属性。 选项
|
|
在管理上关闭此邻居。 选项
|
|
配置如何处理导入失败的路由。 选项
|
|
计时器。 |
|
保持时间(秒)。 |
|
保持活动间隔(秒)。 |
|
配置TCP会话的传输选项。 |
|
配置TCP会话的连接模式。 |
|
配置要连接到的BGP对等体TCP端口。 |
|
BGP ttl安全检查。 |
|
指定对等BGP会话的本地源接口。 |
|
要分配的权重。 |
|
配置网络路由。 |
|
地址前缀。 |
|
路由映射的名称。 |
|
将路由重新分发到BGP。 |
|
适用于ISIS路由。指定ISIS路由级别。 选项
|
|
OSPF路由选项。 选项
|
|
要重新分发的路由。 选项
|
|
路由映射引用。 |
|
路由目标。 |
|
路由操作。 选项
|
|
导出从相同Afi/Safi导入的路由。 选项
|
|
路由映射的名称。 |
|
路由目标。 |
|
地址族的类型 选项
|
|
路由器ID。 |
|
如果为true,则关闭BGP。 选项
|
|
计时器。 |
|
保持时间(秒)。 |
|
保持活动间隔(秒)。 |
|
配置不等代价多路径。 |
|
配置UCMP FEC利用率阈值。 |
|
清除UCMP FEC利用率阈值。 |
|
UCMP FEC利用率过高阈值。 |
|
配置链路带宽传播延迟。 |
|
UCMP链路带宽模式 选项
|
|
链路带宽通告延迟。 |
|
UCMP模式。 |
|
UCMP下一跳总数的值。 |
|
如果为true,则将ucmp模式设置为1。 选项
|
|
配置BGP更新生成。 |
|
FIB路由确认的批量大小。 |
|
在收敛或同步之前等待选项。 选项
|
|
VRF名称。 |
|
此选项仅与状态 *parsed* 一起使用。 此选项的值应为通过执行命令 **show running-config | section bgp** 从EOS设备接收到的输出。 状态 *parsed* 从 |
|
配置应保留到的状态。 状态 *purged* 将从目标设备删除所有BGP配置。使用此状态时请谨慎。(‘no router bgp <x>’) 状态 *deleted* 仅删除此模块管理的BGP属性,不会完全否定BGP进程。从而保留BGP上下文下的地址族相关配置。 如果在要删除的vrf上下文中存在地址族配置行,则运行状态 *deleted* 和 *replaced* 将导致错误。请使用 arista.eos.eos_bgp_address_family 模块进行之前的清理。 有关更多详细信息,请参阅示例。 选项
|
注释
注意
针对Arista EOS 4.24.6F进行了测试
此模块与连接
network_cli
配合使用。请参阅 EOS平台选项。
示例
# Using Merged
# Before state:
# -------------
# veos(config)#show running-config | section bgp
# veos(config)#
- name: Merge provided configuration with device configuration
arista.eos.eos_bgp_global:
config:
as_number: "100"
bgp_params:
host_routes: true
convergence:
slow_peer: true
time: 6
additional_paths: "send"
log_neighbor_changes: true
maximum_paths:
max_equal_cost_paths: 55
aggregate_address:
- address: "1.2.1.0/24"
as_set: true
match_map: "match01"
- address: "5.2.1.0/24"
attribute_map: "attrmatch01"
advertise_only: true
redistribute:
- protocol: "static"
route_map: "map_static"
- protocol: "attached-host"
distance:
internal: 50
neighbor:
- peer: "10.1.3.2"
allowas_in:
set: true
default_originate:
always: true
dont_capability_negotiate: true
export_localpref: 4000
maximum_received_routes:
count: 500
warning_limit:
limit_percent: 5
next_hop_unchanged: true
prefix_list:
name: "prefix01"
direction: "out"
- neighbor_address: "peer1"
fall_over: true
link_bandwidth:
update_delay: 5
monitoring: true
send_community:
community_attribute: "extended"
sub_attribute: "link-bandwidth"
link_bandwidth_attribute: "aggregate"
speed: "600"
vlan: 5
state: merged
# Task output:
# ------------
# before: {}
#
# commands:
# - router bgp 100
# - neighbor 10.1.3.2 allowas-in
# - neighbor 10.1.3.2 default-originate always
# - neighbor 10.1.3.2 dont-capability-negotiate
# - neighbor 10.1.3.2 export-localpref 4000
# - neighbor 10.1.3.2 maximum-routes 500 warning-limit 5 percent
# - neighbor 10.1.3.2 next-hop-unchanged
# - neighbor 10.1.3.2 prefix-list prefix01 out
# - neighbor peer1 fall-over bfd
# - neighbor peer1 link-bandwidth update-delay 5
# - neighbor peer1 monitoring
# - neighbor peer1 send-community extended link-bandwidth aggregate 600
# - redistribute static route-map map_static
# - redistribute attached-host
# - aggregate-address 1.2.1.0/24 as-set match-map match01
# - aggregate-address 5.2.1.0/24 attribute-map attrmatch01 advertise-only
# - bgp host-routes fib direct-install
# - bgp convergence slow-peer time 6
# - bgp additional-paths send any
# - bgp log-neighbor-changes
# - maximum-paths 55
# - distance bgp 50
# - vlan 5
#
# after:
# aggregate_address:
# - address: 1.2.1.0/24
# as_set: true
# match_map: match01
# - address: 5.2.1.0/24
# advertise_only: true
# attribute_map: attrmatch01
# as_number: '100'
# bgp_params:
# additional_paths: send
# convergence:
# slow_peer: true
# time: 6
# distance:
# external: 50
# internal: 50
# local: 50
# maximum_paths:
# max_equal_cost_paths: 55
# neighbor:
# - fall_over: true
# link_bandwidth:
# set: true
# update_delay: 5
# maximum_received_routes:
# count: 12000
# monitoring: true
# neighbor_address: peer1
# peer_group: peer1
# send_community:
# community_attribute: extended
# link_bandwidth_attribute: aggregate
# speed: '600'
# sub_attribute: link-bandwidth
# - allowas_in:
# count: 3
# default_originate:
# always: true
# dont_capability_negotiate: true
# export_localpref: 4000
# maximum_received_routes:
# count: 500
# warning_limit:
# limit_percent: 5
# neighbor_address: 10.1.3.2
# next_hop_unchanged: true
# redistribute:
# - protocol: static
# route_map: map_static
# - protocol: attached-host
# vlan: 5
# After state:
# ------------
# veos(config)#show running-config | section bgp
# router bgp 100
# bgp convergence slow-peer time 6
# distance bgp 50 50 50
# maximum-paths 55
# bgp additional-paths send any
# neighbor peer1 peer group
# neighbor peer1 link-bandwidth update-delay 5
# neighbor peer1 fall-over bfd
# neighbor peer1 monitoring
# neighbor peer1 send-community extended link-bandwidth aggregate 600
# neighbor peer1 maximum-routes 12000
# neighbor 10.1.3.2 export-localpref 4000
# neighbor 10.1.3.2 next-hop-unchanged
# neighbor 10.1.3.2 dont-capability-negotiate
# neighbor 10.1.3.2 allowas-in 3
# neighbor 10.1.3.2 default-originate always
# neighbor 10.1.3.2 maximum-routes 500 warning-limit 5 percent
# aggregate-address 1.2.1.0/24 as-set match-map match01
# aggregate-address 5.2.1.0/24 attribute-map attrmatch01 advertise-only
# redistribute static route-map map_static
# redistribute attached-host
# !
# vlan 5
# !
# address-family ipv4
# neighbor 10.1.3.2 prefix-list prefix01 out
# Using replaced:
# Before state:
# -------------
# veos(config)#show running-config | section bgp
# router bgp 100
# bgp convergence slow-peer time 6
# distance bgp 50 50 50
# maximum-paths 55
# bgp additional-paths send any
# neighbor peer1 peer group
# neighbor peer1 link-bandwidth update-delay 5
# neighbor peer1 fall-over bfd
# neighbor peer1 monitoring
# neighbor peer1 send-community extended link-bandwidth aggregate 600
# neighbor peer1 maximum-routes 12000
# neighbor 10.1.3.2 export-localpref 4000
# neighbor 10.1.3.2 next-hop-unchanged
# neighbor 10.1.3.2 dont-capability-negotiate
# neighbor 10.1.3.2 allowas-in 3
# neighbor 10.1.3.2 default-originate always
# neighbor 10.1.3.2 maximum-routes 500 warning-limit 5 percent
# aggregate-address 1.2.1.0/24 as-set match-map match01
# aggregate-address 5.2.1.0/24 attribute-map attrmatch01 advertise-only
# redistribute static route-map map_static
# redistribute attached-host
# !
# vlan 5
# !
# address-family ipv4
# neighbor 10.1.3.2 prefix-list prefix01 out
# !
# vrf vrf01
# route-target import 54:11
# neighbor 12.1.3.2 dont-capability-negotiate
# neighbor 12.1.3.2 allowas-in 3
# neighbor 12.1.3.2 default-originate always
# neighbor 12.1.3.2 maximum-routes 12000
- name: replace provided configuration with device configuration
arista.eos.eos_bgp_global:
config:
as_number: "100"
bgp_params:
host_routes: true
convergence:
slow_peer: true
time: 6
additional_paths: "send"
log_neighbor_changes: true
vrfs:
- vrf: "vrf01"
maximum_paths:
max_equal_cost_paths: 55
aggregate_address:
- address: "1.2.1.0/24"
as_set: true
match_map: "match01"
- address: "5.2.1.0/24"
attribute_map: "attrmatch01"
advertise_only: true
redistribute:
- protocol: "static"
route_map: "map_static"
- protocol: "attached-host"
distance:
internal: 50
neighbor:
- neighbor_address: "10.1.3.2"
allowas_in:
set: true
default_originate:
always: true
dont_capability_negotiate: true
export_localpref: 4000
maximum_received_routes:
count: 500
warning_limit:
limit_percent: 5
next_hop_unchanged: true
prefix_list:
name: "prefix01"
direction: "out"
- neighbor_address: "peer1"
fall_over: true
link_bandwidth:
update_delay: 5
monitoring: true
send_community:
community_attribute: "extended"
sub_attribute: "link-bandwidth"
link_bandwidth_attribute: "aggregate"
speed: "600"
state: replaced
# Task output:
# ------------
# before:
# aggregate_address:
# - address: 1.2.1.0/24
# as_set: true
# match_map: match01
# - address: 5.2.1.0/24
# advertise_only: true
# attribute_map: attrmatch01
# as_number: '100'
# bgp_params:
# additional_paths: send
# convergence:
# slow_peer: true
# time: 6
# distance:
# external: 50
# internal: 50
# local: 50
# maximum_paths:
# max_equal_cost_paths: 55
# neighbor:
# - fall_over: true
# link_bandwidth:
# set: true
# update_delay: 5
# maximum_received_routes:
# count: 12000
# monitoring: true
# neighbor_address: peer1
# peer_group: peer1
# send_community:
# community_attribute: extended
# link_bandwidth_attribute: aggregate
# speed: '600'
# sub_attribute: link-bandwidth
# - allowas_in:
# count: 3
# default_originate:
# always: true
# dont_capability_negotiate: true
# export_localpref: 4000
# maximum_received_routes:
# count: 500
# warning_limit:
# limit_percent: 5
# neighbor_address: 10.1.3.2
# next_hop_unchanged: true
# redistribute:
# - protocol: static
# route_map: map_static
# - protocol: attached-host
# vlan: 5
# vrfs:
# - neighbor:
# - allowas_in:
# count: 3
# default_originate:
# always: true
# dont_capability_negotiate: true
# maximum_received_routes:
# count: 12000
# neighbor_address: 12.1.3.2
# route_target:
# action: import
# target: '54:11'
# vrf: vrf01
#
# commands:
# - router bgp 100
# - vrf vrf01
# - no route-target import 54:11
# - neighbor 10.1.3.2 allowas-in
# - neighbor 10.1.3.2 default-originate always
# - neighbor 10.1.3.2 dont-capability-negotiate
# - neighbor 10.1.3.2 export-localpref 4000
# - neighbor 10.1.3.2 maximum-routes 500 warning-limit 5 percent
# - neighbor 10.1.3.2 next-hop-unchanged
# - neighbor 10.1.3.2 prefix-list prefix01 out
# - neighbor peer1 fall-over bfd
# - neighbor peer1 link-bandwidth update-delay 5
# - neighbor peer1 monitoring
# - neighbor peer1 send-community extended link-bandwidth aggregate 600
# - no neighbor 12.1.3.2
# - redistribute static route-map map_static
# - redistribute attached-host
# - aggregate-address 1.2.1.0/24 as-set match-map match01
# - aggregate-address 5.2.1.0/24 attribute-map attrmatch01 advertise-only
# - maximum-paths 55
# - distance bgp 50
# - exit
# - no neighbor peer1 peer group
# - no neighbor peer1 link-bandwidth update-delay 5
# - no neighbor peer1 fall-over bfd
# - no neighbor peer1 monitoring
# - no neighbor peer1 send-community extended link-bandwidth aggregate 600
# - no neighbor peer1 maximum-routes 12000
# - no neighbor 10.1.3.2
# - no redistribute static route-map map_static
# - no redistribute attached-host
# - no aggregate-address 1.2.1.0/24 as-set match-map match01
# - no aggregate-address 5.2.1.0/24 attribute-map attrmatch01 advertise-only
# - bgp host-routes fib direct-install
# - bgp log-neighbor-changes
# - no distance bgp 50 50 50
# - no maximum-paths 55
# - no vlan 5
#
# after:
# as_number: '100'
# bgp_params:
# additional_paths: send
# convergence:
# slow_peer: true
# time: 6
# vrfs:
# - aggregate_address:
# - address: 1.2.1.0/24
# as_set: true
# match_map: match01
# - address: 5.2.1.0/24
# advertise_only: true
# attribute_map: attrmatch01
# distance:
# external: 50
# internal: 50
# local: 50
# maximum_paths:
# max_equal_cost_paths: 55
# neighbor:
# - allowas_in:
# count: 3
# default_originate:
# always: true
# dont_capability_negotiate: true
# export_localpref: 4000
# maximum_received_routes:
# count: 500
# warning_limit:
# limit_percent: 5
# neighbor_address: 10.1.3.2
# next_hop_unchanged: true
# redistribute:
# - protocol: static
# route_map: map_static
# - protocol: attached-host
# vrf: vrf01
#
# After state:
# ------------
# veos(config)#show running-config | section bgp
# router bgp 100
# bgp convergence slow-peer time 6
# bgp additional-paths send any
# !
# vrf vrf01
# distance bgp 50 50 50
# maximum-paths 55
# neighbor 10.1.3.2 export-localpref 4000
# neighbor 10.1.3.2 next-hop-unchanged
# neighbor 10.1.3.2 dont-capability-negotiate
# neighbor 10.1.3.2 allowas-in 3
# neighbor 10.1.3.2 default-originate always
# neighbor 10.1.3.2 maximum-routes 500 warning-limit 5 percent
# aggregate-address 1.2.1.0/24 as-set match-map match01
# aggregate-address 5.2.1.0/24 attribute-map attrmatch01 advertise-only
# redistribute static route-map map_static
# redistribute attached-host
# !
# address-family ipv4
# neighbor 10.1.3.2 prefix-list prefix01 out
# Using overridden:
# (Note: Overridden and replaced operations are identitical)
# Before state:
# -------------
# veos(config)#show running-config | section bgp
# router bgp 100
# bgp convergence slow-peer time 6
# distance bgp 50 50 50
# maximum-paths 55
# bgp additional-paths send any
# neighbor peer1 peer group
# neighbor peer1 link-bandwidth update-delay 5
# neighbor peer1 fall-over bfd
# neighbor peer1 monitoring
# neighbor peer1 send-community extended link-bandwidth aggregate 600
# neighbor peer1 maximum-routes 12000
# neighbor 10.1.3.2 export-localpref 4000
# neighbor 10.1.3.2 next-hop-unchanged
# neighbor 10.1.3.2 dont-capability-negotiate
# neighbor 10.1.3.2 allowas-in 3
# neighbor 10.1.3.2 default-originate always
# neighbor 10.1.3.2 maximum-routes 500 warning-limit 5 percent
# aggregate-address 1.2.1.0/24 as-set match-map match01
# aggregate-address 5.2.1.0/24 attribute-map attrmatch01 advertise-only
# redistribute static route-map map_static
# redistribute attached-host
# !
# vlan 5
# !
# address-family ipv4
# neighbor 10.1.3.2 prefix-list prefix01 out
# !
# vrf vrf01
# route-target import 54:11
# neighbor 12.1.3.2 dont-capability-negotiate
# neighbor 12.1.3.2 allowas-in 3
# neighbor 12.1.3.2 default-originate always
# neighbor 12.1.3.2 maximum-routes 12000
- name: override running configuration with configuration
arista.eos.eos_bgp_global:
config:
as_number: "100"
bgp_params:
host_routes: true
convergence:
slow_peer: true
time: 6
additional_paths: "send"
log_neighbor_changes: true
vrfs:
- vrf: "vrf01"
maximum_paths:
max_equal_cost_paths: 55
aggregate_address:
- address: "1.2.1.0/24"
as_set: true
match_map: "match01"
- address: "5.2.1.0/24"
attribute_map: "attrmatch01"
advertise_only: true
redistribute:
- protocol: "static"
route_map: "map_static"
- protocol: "attached-host"
distance:
internal: 50
neighbor:
- neighbor_address: "10.1.3.2"
allowas_in:
set: true
default_originate:
always: true
dont_capability_negotiate: true
export_localpref: 4000
maximum_received_routes:
count: 500
warning_limit:
limit_percent: 5
next_hop_unchanged: true
prefix_list:
name: "prefix01"
direction: "out"
- neighbor_address: "peer1"
fall_over: true
link_bandwidth:
update_delay: 5
monitoring: true
send_community:
community_attribute: "extended"
sub_attribute: "link-bandwidth"
link_bandwidth_attribute: "aggregate"
speed: "600"
state: overridden
# Task output:
# ------------
# before:
# aggregate_address:
# - address: 1.2.1.0/24
# as_set: true
# match_map: match01
# - address: 5.2.1.0/24
# advertise_only: true
# attribute_map: attrmatch01
# as_number: '100'
# bgp_params:
# additional_paths: send
# convergence:
# slow_peer: true
# time: 6
# distance:
# external: 50
# internal: 50
# local: 50
# maximum_paths:
# max_equal_cost_paths: 55
# neighbor:
# - fall_over: true
# link_bandwidth:
# set: true
# update_delay: 5
# maximum_received_routes:
# count: 12000
# monitoring: true
# neighbor_address: peer1
# peer_group: peer1
# send_community:
# community_attribute: extended
# link_bandwidth_attribute: aggregate
# speed: '600'
# sub_attribute: link-bandwidth
# - allowas_in:
# count: 3
# default_originate:
# always: true
# dont_capability_negotiate: true
# export_localpref: 4000
# maximum_received_routes:
# count: 500
# warning_limit:
# limit_percent: 5
# neighbor_address: 10.1.3.2
# next_hop_unchanged: true
# redistribute:
# - protocol: static
# route_map: map_static
# - protocol: attached-host
# vlan: 5
# vrfs:
# - neighbor:
# - allowas_in:
# count: 3
# default_originate:
# always: true
# dont_capability_negotiate: true
# maximum_received_routes:
# count: 12000
# neighbor_address: 12.1.3.2
# route_target:
# action: import
# target: '54:11'
# vrf: vrf01
#
# commands:
# - router bgp 100
# - vrf vrf01
# - no route-target import 54:11
# - neighbor 10.1.3.2 allowas-in
# - neighbor 10.1.3.2 default-originate always
# - neighbor 10.1.3.2 dont-capability-negotiate
# - neighbor 10.1.3.2 export-localpref 4000
# - neighbor 10.1.3.2 maximum-routes 500 warning-limit 5 percent
# - neighbor 10.1.3.2 next-hop-unchanged
# - neighbor 10.1.3.2 prefix-list prefix01 out
# - neighbor peer1 fall-over bfd
# - neighbor peer1 link-bandwidth update-delay 5
# - neighbor peer1 monitoring
# - neighbor peer1 send-community extended link-bandwidth aggregate 600
# - no neighbor 12.1.3.2
# - redistribute static route-map map_static
# - redistribute attached-host
# - aggregate-address 1.2.1.0/24 as-set match-map match01
# - aggregate-address 5.2.1.0/24 attribute-map attrmatch01 advertise-only
# - maximum-paths 55
# - distance bgp 50
# - exit
# - no neighbor peer1 peer group
# - no neighbor peer1 link-bandwidth update-delay 5
# - no neighbor peer1 fall-over bfd
# - no neighbor peer1 monitoring
# - no neighbor peer1 send-community extended link-bandwidth aggregate 600
# - no neighbor peer1 maximum-routes 12000
# - no neighbor 10.1.3.2
# - no redistribute static route-map map_static
# - no redistribute attached-host
# - no aggregate-address 1.2.1.0/24 as-set match-map match01
# - no aggregate-address 5.2.1.0/24 attribute-map attrmatch01 advertise-only
# - bgp host-routes fib direct-install
# - bgp log-neighbor-changes
# - no distance bgp 50 50 50
# - no maximum-paths 55
# - no vlan 5
#
# after:
# as_number: '100'
# bgp_params:
# additional_paths: send
# convergence:
# slow_peer: true
# time: 6
# vrfs:
# - aggregate_address:
# - address: 1.2.1.0/24
# as_set: true
# match_map: match01
# - address: 5.2.1.0/24
# advertise_only: true
# attribute_map: attrmatch01
# distance:
# external: 50
# internal: 50
# local: 50
# maximum_paths:
# max_equal_cost_paths: 55
# neighbor:
# - allowas_in:
# count: 3
# default_originate:
# always: true
# dont_capability_negotiate: true
# export_localpref: 4000
# maximum_received_routes:
# count: 500
# warning_limit:
# limit_percent: 5
# neighbor_address: 10.1.3.2
# next_hop_unchanged: true
# redistribute:
# - protocol: static
# route_map: map_static
# - protocol: attached-host
# vrf: vrf01
#
# After state:
# ------------
# veos(config)#show running-config | section bgp
# router bgp 100
# bgp convergence slow-peer time 6
# bgp additional-paths send any
# !
# vrf vrf01
# distance bgp 50 50 50
# maximum-paths 55
# neighbor 10.1.3.2 export-localpref 4000
# neighbor 10.1.3.2 next-hop-unchanged
# neighbor 10.1.3.2 dont-capability-negotiate
# neighbor 10.1.3.2 allowas-in 3
# neighbor 10.1.3.2 default-originate always
# neighbor 10.1.3.2 maximum-routes 500 warning-limit 5 percent
# aggregate-address 1.2.1.0/24 as-set match-map match01
# aggregate-address 5.2.1.0/24 attribute-map attrmatch01 advertise-only
# redistribute static route-map map_static
# redistribute attached-host
# !
# address-family ipv4
# neighbor 10.1.3.2 prefix-list prefix01 out
# Using deleted:
# Before state:
# -------------
# veos(config)#show running-config | section bgp
# router bgp 100
# bgp convergence slow-peer time 6
# bgp additional-paths send any
# !
# vrf vrf01
# distance bgp 50 50 50
# maximum-paths 55
# neighbor 10.1.3.2 export-localpref 4000
# neighbor 10.1.3.2 next-hop-unchanged
# neighbor 10.1.3.2 dont-capability-negotiate
# neighbor 10.1.3.2 allowas-in 3
# neighbor 10.1.3.2 default-originate always
# neighbor 10.1.3.2 maximum-routes 500 warning-limit 5 percent
# aggregate-address 1.2.1.0/24 as-set match-map match01
# aggregate-address 5.2.1.0/24 attribute-map attrmatch01 advertise-only
# redistribute static route-map map_static
# redistribute attached-host
# !
- name: Delete configuration
arista.eos.eos_bgp_global:
config:
as_number: "100"
state: deleted
# Task output:
# ------------
# before:
# as_number: '100'
# bgp_params:
# additional_paths: send
# convergence:
# slow_peer: true
# time: 6
# vrfs:
# - aggregate_address:
# - address: 1.2.1.0/24
# as_set: true
# match_map: match01
# - address: 5.2.1.0/24
# advertise_only: true
# attribute_map: attrmatch01
# distance:
# external: 50
# internal: 50
# local: 50
# maximum_paths:
# max_equal_cost_paths: 55
# neighbor:
# - allowas_in:
# count: 3
# default_originate:
# always: true
# dont_capability_negotiate: true
# export_localpref: 4000
# maximum_received_routes:
# count: 500
# warning_limit:
# limit_percent: 5
# neighbor_address: 10.1.3.2
# next_hop_unchanged: true
# redistribute:
# - protocol: static
# route_map: map_static
# - protocol: attached-host
# vrf: vrf01
#
# commands:
# - router bgp 100
# - no vrf vrf01
# - no bgp convergence slow-peer time 6
# - no bgp additional-paths send any
#
# after:
# as_number: '100'
#
# After state:
# ------------
# veos(config)#show running-config | section bgp
# router bgp 100
# Using purged:
# Before state:
# -------------
# veos(config)#show running-config | section bgp
# router bgp 100
# bgp convergence slow-peer time 6
# distance bgp 50 50 50
# maximum-paths 55
# bgp additional-paths send any
# neighbor peer1 peer group
# neighbor peer1 link-bandwidth update-delay 5
# neighbor peer1 fall-over bfd
# neighbor peer1 monitoring
# neighbor peer1 send-community extended link-bandwidth aggregate 600
# neighbor peer1 maximum-routes 12000
# neighbor 10.1.3.2 export-localpref 4000
# neighbor 10.1.3.2 next-hop-unchanged
# neighbor 10.1.3.2 dont-capability-negotiate
# neighbor 10.1.3.2 allowas-in 3
# neighbor 10.1.3.2 default-originate always
# neighbor 10.1.3.2 maximum-routes 500 warning-limit 5 percent
# aggregate-address 1.2.1.0/24 as-set match-map match01
# aggregate-address 5.2.1.0/24 attribute-map attrmatch01 advertise-only
# redistribute static route-map map_static
# redistribute attached-host
# !
# vlan 5
# !
# address-family ipv4
# neighbor 10.1.3.2 prefix-list prefix01 out
# !
# vrf vrf01
# route-target import 54:11
# neighbor 12.1.3.2 dont-capability-negotiate
# neighbor 12.1.3.2 allowas-in 3
# neighbor 12.1.3.2 default-originate always
# neighbor 12.1.3.2 maximum-routes 12000
- name: Purge configuration
arista.eos.eos_bgp_global:
config:
as_number: "100"
state: purged
# Task output:
# ------------
# before:
# aggregate_address:
# - address: 1.2.1.0/24
# as_set: true
# match_map: match01
# - address: 5.2.1.0/24
# advertise_only: true
# attribute_map: attrmatch01
# as_number: '100'
# bgp_params:
# additional_paths: send
# convergence:
# slow_peer: true
# time: 6
# distance:
# external: 50
# internal: 50
# local: 50
# maximum_paths:
# max_equal_cost_paths: 55
# neighbor:
# - fall_over: true
# link_bandwidth:
# set: true
# update_delay: 5
# maximum_received_routes:
# count: 12000
# monitoring: true
# neighbor_address: peer1
# peer_group: peer1
# send_community:
# community_attribute: extended
# link_bandwidth_attribute: aggregate
# speed: '600'
# sub_attribute: link-bandwidth
# - allowas_in:
# count: 3
# default_originate:
# always: true
# dont_capability_negotiate: true
# export_localpref: 4000
# maximum_received_routes:
# count: 500
# warning_limit:
# limit_percent: 5
# neighbor_address: 10.1.3.2
# next_hop_unchanged: true
# redistribute:
# - protocol: static
# route_map: map_static
# - protocol: attached-host
# vlan: 5
# vrfs:
# - neighbor:
# - allowas_in:
# count: 3
# default_originate:
# always: true
# dont_capability_negotiate: true
# maximum_received_routes:
# count: 12000
# neighbor_address: 12.1.3.2
# route_target:
# action: import
# target: '54:11'
# vrf: vrf01
# "changed": true,
#
# commands:
# - no router bgp 100
#
# after: {}
# After state:
# ------------
# veos(config)#show running-config | section bgp
# veos(config)#
# Using rendered
- name: Render command lines for provided configuration
arista.eos.eos_bgp_global:
config:
as_number: "100"
bgp_params:
host_routes: true
convergence:
slow_peer: true
time: 6
additional_paths: "send"
log_neighbor_changes: true
maximum_paths:
max_equal_cost_paths: 55
aggregate_address:
- address: "1.2.1.0/24"
as_set: true
match_map: "match01"
- address: "5.2.1.0/24"
attribute_map: "attrmatch01"
advertise_only: true
redistribute:
- protocol: "static"
route_map: "map_static"
- protocol: "attached-host"
distance:
internal: 50
neighbor:
- peer: "10.1.3.2"
allowas_in:
set: true
default_originate:
always: true
dont_capability_negotiate: true
export_localpref: 4000
maximum_received_routes:
count: 500
warning_limit:
limit_percent: 5
next_hop_unchanged: true
prefix_list:
name: "prefix01"
direction: "out"
- neighbor_address: "peer1"
fall_over: true
link_bandwidth:
update_delay: 5
monitoring: true
send_community:
community_attribute: "extended"
sub_attribute: "link-bandwidth"
link_bandwidth_attribute: "aggregate"
speed: "600"
vlan: 5
state: rendered
# Task output:
# ------------
# rendered:
# - router bgp 100
# - neighbor 10.1.3.2 allowas-in
# - neighbor 10.1.3.2 default-originate always
# - neighbor 10.1.3.2 dont-capability-negotiate
# - neighbor 10.1.3.2 export-localpref 4000
# - neighbor 10.1.3.2 maximum-routes 500 warning-limit 5 percent
# - neighbor 10.1.3.2 next-hop-unchanged
# - neighbor 10.1.3.2 prefix-list prefix01 out
# - neighbor peer1 fall-over bfd
# - neighbor peer1 link-bandwidth update-delay 5
# - neighbor peer1 monitoring
# - neighbor peer1 send-community extended link-bandwidth aggregate 600
# - redistribute static route-map map_static
# - redistribute attached-host
# - aggregate-address 1.2.1.0/24 as-set match-map match01
# - aggregate-address 5.2.1.0/24 attribute-map attrmatch01 advertise-only
# - bgp host-routes fib direct-install
# - bgp convergence slow-peer time 6
# - bgp additional-paths send any
# - bgp log-neighbor-changes
# - maximum-paths 55
# - distance bgp 50
# - vlan 5
# Using parsed
# parsed.cfg
# ----------
# router bgp 100
# bgp convergence slow-peer time 6
# distance bgp 50 50 50
# maximum-paths 55
# bgp additional-paths send any
# neighbor peer1 peer group
# neighbor peer1 link-bandwidth update-delay 5
# neighbor peer1 fall-over bfd
# neighbor peer1 monitoring
# neighbor peer1 send-community extended link-bandwidth aggregate 600
# neighbor peer1 maximum-routes 12000
# neighbor 10.1.3.2 export-localpref 4000
# neighbor 10.1.3.2 next-hop-unchanged
# neighbor 10.1.3.2 dont-capability-negotiate
# neighbor 10.1.3.2 allowas-in 3
# neighbor 10.1.3.2 default-originate always
# neighbor 10.1.3.2 maximum-routes 500 warning-limit 5 percent
# aggregate-address 1.2.1.0/24 as-set match-map match01
# aggregate-address 5.2.1.0/24 attribute-map attrmatch01 advertise-only
# redistribute static route-map map_static
# redistribute attached-host
# !
# vlan 5
# !
# address-family ipv4
# neighbor 10.1.3.2 prefix-list prefix01 out
# !
# vrf vrf01
# route-target import 54:11
# neighbor 12.1.3.2 dont-capability-negotiate
# neighbor 12.1.3.2 allowas-in 3
# neighbor 12.1.3.2 default-originate always
# neighbor 12.1.3.2 maximum-routes 12000
- name: Parse externally provided BGP config
arista.eos.eos_bgp_global:
running_config: "{{ lookup('file', 'parsed.cfg') }}"
state: parsed
# Task output:
# ------------
# parsed:
# aggregate_address:
# - address: 1.2.1.0/24
# as_set: true
# match_map: match01
# - address: 5.2.1.0/24
# advertise_only: true
# attribute_map: attrmatch01
# as_number: '100'
# bgp_params:
# additional_paths: send
# convergence:
# slow_peer: true
# time: 6
# distance:
# external: 50
# internal: 50
# local: 50
# maximum_paths:
# max_equal_cost_paths: 55
# neighbor:
# - fall_over: true
# link_bandwidth:
# set: true
# update_delay: 5
# maximum_received_routes:
# count: 12000
# monitoring: true
# neighbor_address: peer1
# peer_group: peer1
# send_community:
# community_attribute: extended
# link_bandwidth_attribute: aggregate
# speed: '600'
# sub_attribute: link-bandwidth
# - allowas_in:
# count: 3
# default_originate:
# always: true
# dont_capability_negotiate: true
# export_localpref: 4000
# maximum_received_routes:
# count: 500
# warning_limit:
# limit_percent: 5
# neighbor_address: 10.1.3.2
# next_hop_unchanged: true
# redistribute:
# - protocol: static
# route_map: map_static
# - protocol: attached-host
# vlan: 5
# vrfs:
# - neighbor:
# - allowas_in:
# count: 3
# default_originate:
# always: true
# dont_capability_negotiate: true
# maximum_received_routes:
# count: 12000
# neighbor_address: 12.1.3.2
# route_target:
# action: import
# target: '54:11'
# vrf: vrf01
# Using gathered
# existing config
# veos(config)#show running-config | section bgp
# router bgp 100
# bgp convergence slow-peer time 6
# distance bgp 50 50 50
# maximum-paths 55
# bgp additional-paths send any
# neighbor peer1 peer group
# neighbor peer1 link-bandwidth update-delay 5
# neighbor peer1 fall-over bfd
# neighbor peer1 monitoring
# neighbor peer1 send-community extended link-bandwidth aggregate 600
# neighbor peer1 maximum-routes 12000
# neighbor 10.1.3.2 export-localpref 4000
# neighbor 10.1.3.2 next-hop-unchanged
# neighbor 10.1.3.2 dont-capability-negotiate
# neighbor 10.1.3.2 allowas-in 3
# neighbor 10.1.3.2 default-originate always
# neighbor 10.1.3.2 maximum-routes 500 warning-limit 5 percent
# aggregate-address 1.2.1.0/24 as-set match-map match01
# aggregate-address 5.2.1.0/24 attribute-map attrmatch01 advertise-only
# redistribute static route-map map_static
# redistribute attached-host
# !
# vlan 5
# !
# address-family ipv4
# neighbor 10.1.3.2 prefix-list prefix01 out
# !
# vrf vrf01
# route-target import 54:11
# neighbor 12.1.3.2 dont-capability-negotiate
# neighbor 12.1.3.2 allowas-in 3
# neighbor 12.1.3.2 default-originate always
# neighbor 12.1.3.2 maximum-routes 12000
- name: Gather BGP facts using gathered
arista.eos.eos_bgp_global:
state: gathered
# Task output:
# ------------
# gathered:
# aggregate_address:
# - address: 1.2.1.0/24
# as_set: true
# match_map: match01
# - address: 5.2.1.0/24
# advertise_only: true
# attribute_map: attrmatch01
# as_number: '100'
# bgp_params:
# additional_paths: send
# convergence:
# slow_peer: true
# time: 6
# distance:
# external: 50
# internal: 50
# local: 50
# maximum_paths:
# max_equal_cost_paths: 55
# neighbor:
# - fall_over: true
# link_bandwidth:
# set: true
# update_delay: 5
# maximum_received_routes:
# count: 12000
# monitoring: true
# neighbor_address: peer1
# peer_group: peer1
# send_community:
# community_attribute: extended
# link_bandwidth_attribute: aggregate
# speed: '600'
# sub_attribute: link-bandwidth
# - allowas_in:
# count: 3
# default_originate:
# always: true
# dont_capability_negotiate: true
# export_localpref: 4000
# maximum_received_routes:
# count: 500
# warning_limit:
# limit_percent: 5
# neighbor_address: 10.1.3.2
# next_hop_unchanged: true
# redistribute:
# - protocol: static
# route_map: map_static
# - protocol: attached-host
# vlan: 5
# vrfs:
# - neighbor:
# - allowas_in:
# count: 3
# default_originate:
# always: true
# dont_capability_negotiate: true
# maximum_received_routes:
# count: 12000
# neighbor_address: 12.1.3.2
# route_target:
# action: import
# target: '54:11'
# vrf: vrf01
返回值
常见的返回值已在此处记录,以下是此模块独有的字段
键 |
描述 |
---|---|
生成的配置模型调用。 返回值:发生更改时 示例: |
|
模型调用之前的配置。 返回值:始终返回 示例: |
|
推送到远程设备的命令集。 返回值:始终返回 示例: |
|
从远程设备收集的关于网络资源的结构化数据事实。 返回值:当state 为 示例: |
|
根据模块argspec将running_config选项中提供的设备原生配置解析为结构化数据。 返回值:当state 为 示例: |
|
以设备原生格式呈现的任务中提供的配置(离线)。 返回值:当state 为 示例: |