Skip to content

Commit 7ebb2f7

Browse files
[voq][chassis] VOQ cli show commands implementation (sonic-net#1689)
Changes in this commit - Implementation of the following show commands for VOQ chassis. show chassis system-ports [<system port>] {-n <namespace>}, if multi-asic voq chassis show chassis system-ports [<system port>] , if single asic voq chassis show chassis system-neighbors [<nbr ip address>] [-n <asic name>] show chassis system-lags [<system lag>] [-n <asic name>] [-l <linecard or host name>] - The existing chassis commands under "show chassis_modules" and "config chassis_modules" have been renamed (moved) under "show chassis modules" and "config chassis modules" respectively Signed-off-by: vedganes <[email protected]>
1 parent 37039f5 commit 7ebb2f7

12 files changed

+778
-26
lines changed

config/chassis_modules.py

+9-4
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,19 @@
88
# 'chassis_modules' group ('config chassis_modules ...')
99
#
1010
@click.group(cls=clicommon.AliasedGroup)
11-
def chassis_modules():
12-
"""Configure chassis-modules options"""
11+
def chassis():
12+
"""Configure chassis commands group"""
13+
pass
14+
15+
@chassis.group()
16+
def modules():
17+
"""Configure chassis modules"""
1318
pass
1419

1520
#
1621
# 'shutdown' subcommand ('config chassis_modules shutdown ...')
1722
#
18-
@chassis_modules.command('shutdown')
23+
@modules.command('shutdown')
1924
@clicommon.pass_db
2025
@click.argument('chassis_module_name', metavar='<module_name>', required=True)
2126
def shutdown_chassis_module(db, chassis_module_name):
@@ -34,7 +39,7 @@ def shutdown_chassis_module(db, chassis_module_name):
3439
#
3540
# 'startup' subcommand ('config chassis_modules startup ...')
3641
#
37-
@chassis_modules.command('startup')
42+
@modules.command('startup')
3843
@clicommon.pass_db
3944
@click.argument('chassis_module_name', metavar='<module_name>', required=True)
4045
def startup_chassis_module(db, chassis_module_name):

config/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@ def config(ctx):
981981
config.add_command(aaa.aaa)
982982
config.add_command(aaa.tacacs)
983983
config.add_command(aaa.radius)
984-
config.add_command(chassis_modules.chassis_modules)
984+
config.add_command(chassis_modules.chassis)
985985
config.add_command(console.console)
986986
config.add_command(feature.feature)
987987
config.add_command(kdump.kdump)

0 commit comments

Comments
 (0)