From da15ef5327ec81d5de81d54f28bd57a0609f5821 Mon Sep 17 00:00:00 2001 From: Nathan J Cohen Date: Wed, 15 Jun 2022 15:39:21 -0700 Subject: [PATCH] Added cisco show platform commands --- show/platform.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/show/platform.py b/show/platform.py index 029e28f485..6b1de4824f 100644 --- a/show/platform.py +++ b/show/platform.py @@ -37,7 +37,10 @@ def platform(): if (version_info and version_info.get('asic_type') == 'mellanox'): from . import mlnx platform.add_command(mlnx.mlnx) - +elif version_info and version_info.get("asic_type") == "cisco-8000": + from sonic_platform.cli import PLATFORM_CLIS + for command in PLATFORM_CLIS: + platform.add_command(command) # 'summary' subcommand ("show platform summary") @platform.command()