Skip to content

Cisco-8000 show platform flexibility#2213

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

Cisco-8000 show platform flexibility#2213
kevinskwang merged 1 commit intosonic-net:masterfrom
nathcohe:cisco_8000_show_platform_ext

Conversation

@nathcohe
Copy link
Contributor

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)

@lgtm-com
Copy link

lgtm-com bot commented Jun 13, 2022

This pull request introduces 1 alert and fixes 2 when merging 2793a76 into a3d1345 - view on LGTM.com

new alerts:

  • 1 for Unused import

fixed alerts:

  • 2 for Unused import

@kevinskwang kevinskwang merged commit 248ddd5 into sonic-net:master Jun 20, 2022
@anamehra
Copy link
Contributor

Hi @abdosi , please add this to 202205. Thanks

@nathcohe , FYI-

@abdosi
Copy link
Contributor

abdosi commented Jul 26, 2022

cc @yxieca

yxieca pushed a commit that referenced this pull request Jul 28, 2022
…w platform (#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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants