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 committed Jan 17, 2022
1 parent 62a43f0 commit 6597c25
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 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 @@ -122,5 +122,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)
click.echo(output.rstrip('\n'))
output = bgp_util.run_bgp_show_command(command, namespace)
click.echo(output.rstrip('\n'))
6 changes: 3 additions & 3 deletions show/bgp_frr_v6.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,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 @@ -120,5 +120,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)
click.echo(output.rstrip('\n'))
output = bgp_util.run_bgp_show_command(command, namespace)
click.echo(output.rstrip('\n'))

0 comments on commit 6597c25

Please sign in to comment.