-
Notifications
You must be signed in to change notification settings - Fork 175
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
[sonic_eeprom] Class methods shouldn't take the EEPROM data as a parameter #170
Comments
Hi, I'd like to take this issue. It's a requirement of my course and therefore, I'll make sure to resolve it. Can you please assign it to me? |
@Piyushagg19: Thank you for volunteering! I have assigned the issue to you. If you have any questions along the way, please feel free to discuss here. |
@jleveque: I went through the 'eeprom_base' file but I'm not sure if I understand the issue completely. Can you please explain the issue a bit more or provide me with an example. Also, if you could direct me to the file that needs the necessary changes, it would be great. |
@Piyushagg19: You'll notice that the |
@jleveque: Hi. Are there any test scripts available that I can run to verify the changes made? There are no instructions in the contributing guide regarding tests. |
@Piyushagg19: You should be able to use the |
@jleveque: Can you please guide me on how to use it? This is new for me. Thanks! |
Log into a SONiC device and run
Running |
@jleveque: I'm afraid I don't have access to SONiC device. Can this utility test be performed online or on a virtual machine using Windows machine and qemu or any other way possible? |
Unfortunately, a virtual switch doesn't have an EEPROM, and we currently are not mocking one, so you would need access to a physical switch to work on this. |
@jleveque: I have created a Pull Request and it has passed all the checks. Can you please let me know how to propagate with the review process? |
…in log (sonic-net#170) Changed the chassis definition to be a part of the class do the chassis will be found in run() function Without the change, an error appears in syslog: `ERR pmon#thermalctld: Caught exception while running thermal policy - NameError("name 'chassis' is not defined")`
EEPROM class should obtain EEPROM data when instantiated and store as a class member, then use that data in methods rather than having to pass the raw data into the methods. It defeats the purpose of object-orientation.
The text was updated successfully, but these errors were encountered: