Skip to content

202012: Cisco-8000 show platform flexibility#2221

Merged
kevinskwang merged 1 commit intosonic-net:202012from
nathcohe:202012-cisco_8000_show_platform_ext
Jun 20, 2022
Merged

202012: Cisco-8000 show platform flexibility#2221
kevinskwang merged 1 commit intosonic-net:202012from
nathcohe:202012-cisco_8000_show_platform_ext

Conversation

@nathcohe
Copy link
Copy Markdown
Contributor

Equivalent PR for master: #2213

What I did

Gave cisco-8000 the ability to add sub-commands under show platform <> in our downstream repo. Currently every time we want to add/remove/update a cli, we must raise a PR upstream.

How I did it

I have the cisco-8000.py module import a list of click commands that are written in a module that is located in our platform code.

How to verify it

Run show platform -h to see all commands. We will be able to see show platform inventory. This is only available on cisco devices.

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

@kevinskwang kevinskwang merged commit 077ffb7 into sonic-net:202012 Jun 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants