Skip to content

Commit

Permalink
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
  • Loading branch information
xumia authored Jan 17, 2022
1 parent 9f22ed1 commit 5398ee4
Show file tree
Hide file tree
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
Expand Up @@ -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'))

Expand Down Expand Up @@ -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
Expand Up @@ -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'))

Expand Down Expand Up @@ -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.