From 6597c259a8ea6505b823ce6baceb62be2de5f930 Mon Sep 17 00:00:00 2001 From: xumia <59720581+xumia@users.noreply.github.com> Date: Mon, 17 Jan 2022 13:45:54 +0800 Subject: [PATCH] Fix show ip bgp nei command rw required issue (#2011) Fix the ro command rw permission required issue --- show/bgp_frr_v4.py | 6 +++--- show/bgp_frr_v6.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/show/bgp_frr_v4.py b/show/bgp_frr_v4.py index 8551198f22..f479d786d0 100644 --- a/show/bgp_frr_v4.py +++ b/show/bgp_frr_v4.py @@ -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')) @@ -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')) \ No newline at end of file + output = bgp_util.run_bgp_show_command(command, namespace) + click.echo(output.rstrip('\n')) diff --git a/show/bgp_frr_v6.py b/show/bgp_frr_v6.py index 13255c0a6c..d06f89bcec 100644 --- a/show/bgp_frr_v6.py +++ b/show/bgp_frr_v6.py @@ -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')) @@ -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')) \ No newline at end of file + output = bgp_util.run_bgp_show_command(command, namespace) + click.echo(output.rstrip('\n'))