Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix show ip bgp nei command rw required issue (#2011)
Browse files Browse the repository at this point in the history
Fix the ro command rw permission required issue
xumia authored Jan 17, 2022

Verified

This commit was signed with the committer’s verified signature.
sandhose Quentin Gliech
1 parent 9f22ed1 commit 5398ee4
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions show/bgp_frr_v4.py
Original file line number Diff line number Diff line change
@@ -75,7 +75,7 @@ def neighbors(ipaddress, info_type, namespace):
ns_list = multi_asic.get_namespace_list(namespace)
output = ""
for ns in ns_list:
output += bgp_util.run_bgp_command(command, ns)
output += bgp_util.run_bgp_show_command(command, ns)

click.echo(output.rstrip('\n'))

@@ -125,5 +125,5 @@ def network(ipaddress, info_type, namespace):
if info_type is not None:
command += ' {}'.format(info_type)

output = bgp_util.run_bgp_command(command, namespace)
output = bgp_util.run_bgp_show_command(command, namespace)
click.echo(output.rstrip('\n'))
4 changes: 2 additions & 2 deletions show/bgp_frr_v6.py
Original file line number Diff line number Diff line change
@@ -74,7 +74,7 @@ def neighbors(ipaddress, info_type, namespace):
ns_list = multi_asic.get_namespace_list(namespace)
output = ""
for ns in ns_list:
output += bgp_util.run_bgp_command(command, ns)
output += bgp_util.run_bgp_show_command(command, ns)

click.echo(output.rstrip('\n'))

@@ -125,5 +125,5 @@ def network(ipaddress, info_type, namespace):
if info_type is not None:
command += ' {}'.format(info_type)

output = bgp_util.run_bgp_command(command, namespace)
output = bgp_util.run_bgp_show_command(command, namespace)
click.echo(output.rstrip('\n'))

0 comments on commit 5398ee4

Please sign in to comment.