Skip to content

Commit c2facd8

Browse files
authored
[show] Fix abbreviations for 'show ip bgp ...' commands (#901)
1 parent cb68e7d commit c2facd8

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

show/bgp_frr_v4.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import click
2-
from show.main import ip, run_command, get_bgp_summary_extended
2+
from show.main import AliasedGroup, ip, run_command, get_bgp_summary_extended
33

44

55
###############################################################################
@@ -9,7 +9,7 @@
99
###############################################################################
1010

1111

12-
@ip.group()
12+
@ip.group(cls=AliasedGroup)
1313
def bgp():
1414
"""Show IPv4 BGP (Border Gateway Protocol) information"""
1515
pass

show/bgp_frr_v6.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import click
2-
from show.main import ipv6, run_command, get_bgp_summary_extended
2+
from show.main import AliasedGroup, ipv6, run_command, get_bgp_summary_extended
33

44

55
###############################################################################
@@ -9,7 +9,7 @@
99
###############################################################################
1010

1111

12-
@ipv6.group()
12+
@ipv6.group(cls=AliasedGroup)
1313
def bgp():
1414
"""Show IPv6 BGP (Border Gateway Protocol) information"""
1515
pass

show/bgp_quagga_v4.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import click
2-
from show.main import ip, run_command, get_bgp_summary_extended
2+
from show.main import AliasedGroup, ip, run_command, get_bgp_summary_extended
33

44

55
###############################################################################
@@ -9,7 +9,7 @@
99
###############################################################################
1010

1111

12-
@ip.group()
12+
@ip.group(cls=AliasedGroup)
1313
def bgp():
1414
"""Show IPv4 BGP (Border Gateway Protocol) information"""
1515
pass

show/bgp_quagga_v6.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import click
2-
from show.main import ipv6, run_command, get_bgp_summary_extended
2+
from show.main import AliasedGroup, ipv6, run_command, get_bgp_summary_extended
33

44

55
###############################################################################
@@ -9,7 +9,7 @@
99
###############################################################################
1010

1111

12-
@ipv6.group()
12+
@ipv6.group(cls=AliasedGroup)
1313
def bgp():
1414
"""Show IPv6 BGP (Border Gateway Protocol) information"""
1515
pass

0 commit comments

Comments
 (0)