Skip to content

Commit

Permalink
Add condition for using PLATFORM_CLIS
Browse files Browse the repository at this point in the history
Signed-off-by: Geert Vlaemynck <gvlaemyn@cisco.com>
  • Loading branch information
gvlaemyn committed Aug 22, 2024
1 parent 1cac9ce commit 062649f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion show/plugins/cisco-8000.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
def register(cli):
version_info = device_info.get_sonic_version_info()
if version_info and version_info.get("asic_type") == "cisco-8000":
VENDOR_CLIS["platform"] = PLATFORM_CLIS
if PLATFORM_CLIS and not VENDOR_CLIS.get("platform"):
VENDOR_CLIS["platform"] = PLATFORM_CLIS
for command, subcommands in VENDOR_CLIS.items():
for subcommand in subcommands:
cli.commands[command].add_command(subcommand)

0 comments on commit 062649f

Please sign in to comment.