-
Notifications
You must be signed in to change notification settings - Fork 171
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
CMIS: Remote upgrade support #400
Conversation
1. Cleanup unnecessary imports 2. update the comments
Add string macros for offset and length to get vendor name and part number
Add pytest for xcvc_api_factory file
@prgeor : All comments addressed and UT is also taken care. Can you please approve if there are no further comments? |
@StormLiangMS - Can you please help in merging this to 202305? |
Hi @AnoopKamath, with this change we see issues on some QSFP cables, would you please take a look
|
issue created to trace: sonic-net/sonic-buildimage#16838 |
Hi @keboliu, Can you try replacing decode function to str(data, 'UTF-8') and check?
|
@AnoopKamath why do we not have this as default ? |
@AnoopKamath please check this issue - sonic-net/sonic-buildimage#16838 |
I have not seen any xcvrd issue on my setup with decode(). Trying to check if I can trigger this. |
Hi @keboliu, @vmittal-msft, Please verify the fix #406 for sonic-net/sonic-buildimage#16838 |
@mihirpat1 @prgeor this is more like a feature, why cherry pick to old branch? |
@AnoopKamath have you tested this PR with 202305 image? |
@StormLiangMS, Yes tested and verified with 202305 image
|
* Add vendor specific consts * replace vendor classes * Vendor specific CMIS api file * Vendor specific codes * Vendor specific mem_mps file * Address review comments 1. Cleanup unnecessary imports 2. update the comments * Update aec_800g.py * Address review comments Add string macros for offset and length to get vendor name and part number * Add Credo vendor class packages * Update xcvr_api_factory.py * Create test_xcvr_api_factory.py Add pytest for xcvc_api_factory file * Update test_xcvr_api_factory.py * Add test for create_xcvr_api * Update test_xcvr_api_factory.py
* Add vendor specific consts * replace vendor classes * Vendor specific CMIS api file * Vendor specific codes * Vendor specific mem_mps file * Address review comments 1. Cleanup unnecessary imports 2. update the comments * Update aec_800g.py * Address review comments Add string macros for offset and length to get vendor name and part number * Add Credo vendor class packages * Update xcvr_api_factory.py * Create test_xcvr_api_factory.py Add pytest for xcvc_api_factory file * Update test_xcvr_api_factory.py * Add test for create_xcvr_api * Update test_xcvr_api_factory.py
Description
Create vendor specific files and classes derived from main class. If vendor is matched when sfputil is run, set the vendor specific byte as target mode
Motivation and Context
Helps with remote upgrade feature
How Has This Been Tested?
Try different target mode, upgrade/downgrade
Additional Information (Optional)