Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SONiC CLI #7

Merged
merged 13 commits into from
Feb 24, 2017
Merged

Add SONiC CLI #7

merged 13 commits into from
Feb 24, 2017

Conversation

jleveque
Copy link
Contributor

  • Add SONiC CLI as a Python package
  • Debian package is now built using Python setuptools instead of dpkg-buildpackage
  • Create sonic_eeprom and sonic_sfp Python packages to cleanly house modules
  • Merge changes from internal repo

 - Rename 'show' package to 'sonic-cli'
 - Create 'sonic-eeprom' Python package to house EEPROM-releated modules in an organized fashion
 - Create 'sonic-sfp' Python package to house SFP-related modules
 - All scripts now reference the above packages
 - sfputilbase.py now correctly parses 2- and 3-column port_config.ini/portmap.ini files
stderr=subprocess.STDOUT)
stdout = proc.communicate()[0]
proc.wait()
model = stdout.rstrip('\n')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename model and submodel to platform and hwsku?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved: 06619a6

@@ -66,7 +66,6 @@ filter_bucket_dict = {
'RFCR': 1,
'RJBR': 1,
'RDBGC0': 2,
'RDBGC2': 2,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this line removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a change I merged from our internal repo. You removed this, claiming it was an unnecessary drop counter on 5/12/2016.

scripts/portstat Outdated
@@ -310,7 +309,7 @@ Examples:
sys.exit(0)

try:
bcmcmd_output = subprocess.Popen((['/usr/sbin/bcmcmd',
bcmcmd_output = subprocess.Popen((['/usr/bin/bcmcmd',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

define the path at the top of the script?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved: 05b0c7d

from sff8472 import sff8472InterfaceId
from sff8472 import sff8472Dom
from sff8436 import sff8436InterfaceId
from sff8436 import sff8436Dom
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move sff8436/sff8472 to sonic_sfp folder?

Copy link
Contributor Author

@jleveque jleveque Feb 22, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already done. Since sfputilbase, sff8436 and sff8472 all reside in the same package now, they can simply reference one another using relative paths. I could make the paths absolute for clarity, if desired.

@lguohan
Copy link
Contributor

lguohan commented Feb 23, 2017

:shipit:

@stcheng
Copy link
Contributor

stcheng commented Feb 23, 2017

Please follow the GitHub Workflow and update the commit title and message.
Thanks! 😃

@jleveque jleveque merged commit 06ba40e into sonic-net:master Feb 24, 2017
@jleveque jleveque deleted the sonic-cli branch February 24, 2017 00:36
samaity added a commit to samaity/sonic-utilities that referenced this pull request Dec 14, 2019
Signed-off-by: Sangita Maity <sangitamaity0211@gmail.com>
vdahiya12 pushed a commit to vdahiya12/sonic-utilities that referenced this pull request Jul 23, 2021
platform plugins is mounted to /usr/share/sonic/platform/plugins in pmon docker
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.

3 participants