-
Notifications
You must be signed in to change notification settings - Fork 676
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
Conversation
jleveque
commented
Feb 22, 2017
- 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
…on setuptools convention
- 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
scripts/decode-syseeprom
Outdated
stderr=subprocess.STDOUT) | ||
stdout = proc.communicate()[0] | ||
proc.wait() | ||
model = stdout.rstrip('\n') |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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', |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
|
Please follow the GitHub Workflow and update the commit title and message. |
Signed-off-by: Sangita Maity <sangitamaity0211@gmail.com>
platform plugins is mounted to /usr/share/sonic/platform/plugins in pmon docker