From 5398ee4b32891eb83241cdfd0e9e0ecd8cbfaf28 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 | 4 ++-- show/bgp_frr_v6.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/show/bgp_frr_v4.py b/show/bgp_frr_v4.py index e68efe5289..6343e8b7b2 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')) @@ -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')) diff --git a/show/bgp_frr_v6.py b/show/bgp_frr_v6.py index e36e66ce08..6efe44bcd9 100644 --- a/show/bgp_frr_v6.py +++ b/show/bgp_frr_v6.py @@ -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'))