1
0
Fork 1
mirror of https://github.com/thatmattlove/hyperglass.git synced 2026-01-17 08:48:05 +00:00

fix: timeout when fetching bgp routes

Huawei has pagination by default and when the output exceeds 24 lines it expects the user to keep scrooling to display the output. This makes the netmiko time out. By passing "| no-more" the pagination will be disabled for the command
This commit is contained in:
Jelson Stoelben Rodrigues 2025-05-26 20:11:19 -03:00 committed by Jason Hall
parent b7abe8d027
commit 44f8faa1e5

View file

@ -27,15 +27,16 @@ Huawei_BGPRoute = BuiltinDirective(
RuleWithIPv4(
condition="0.0.0.0/0",
action="permit",
command="display bgp routing-table {target}",
command="display bgp routing-table {target} | no-more",
),
RuleWithIPv6(
condition="::/0",
action="permit",
command="display bgp ipv6 routing-table {target}",
command="display bgp ipv6 routing-table {target} | no-more",
),
],
field=Text(description="IP Address, Prefix, or Hostname"),
plugins=["bgp_route_huawei"],
platforms=PLATFORMS,
)