Skip to content

Commit cfd63f6

Browse files
committed
Fix show ip bgp nei command rw required issue (#2011)
Fix the ro command rw permission required issue
1 parent 10ef8a4 commit cfd63f6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

show/bgp_frr_v4.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def neighbors(ipaddress, info_type, namespace):
7575
ns_list = multi_asic.get_namespace_list(namespace)
7676
output = ""
7777
for ns in ns_list:
78-
output += bgp_util.run_bgp_command(command, ns)
78+
output += bgp_util.run_bgp_show_command(command, ns)
7979

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

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

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

show/bgp_frr_v6.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def neighbors(ipaddress, info_type, namespace):
7474
ns_list = multi_asic.get_namespace_list(namespace)
7575
output = ""
7676
for ns in ns_list:
77-
output += bgp_util.run_bgp_command(command, ns)
77+
output += bgp_util.run_bgp_show_command(command, ns)
7878

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

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

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

0 commit comments

Comments
 (0)