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:
parent
b7abe8d027
commit
44f8faa1e5
1 changed files with 3 additions and 2 deletions
|
|
@ -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,
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue