-
Notifications
You must be signed in to change notification settings - Fork 648
Support SAI_PORT_SERDES_ATTR_CUSTOM_COLLECTION #3764
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
base: master
Are you sure you want to change the base?
Support SAI_PORT_SERDES_ATTR_CUSTOM_COLLECTION #3764
Conversation
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
@prgeor @mihirpat1 could you please review, thanks |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
… for serdes attrs
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
@prsunny can you merge? |
|
@longhuan-cisco , i see new boost library added, can you provide description of why its added? |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
@prsunny Sure, added explantation in PR description. In today's orchagent code base, boost library has been used in multiple places, e.g.: sonic-swss/orchagent/port/porthlpr.cpp Line 10 in d0b2561
Line 8 in d0b2561
|
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
sonic-platform-daemon side change: sonic-net/sonic-platform-daemons#643
What I did
Support SAI_PORT_SERDES_ATTR_CUSTOM_COLLECTION (i.e. custom serdes attributes represented in JSON based string format)
Use boost::variant for the serdes_attr map value to support both std::vector<uint32_t> and std::string in a type-safe way, with easy extensibility to add more types later.
Why I did it
How I verified it
Tested end-to-end xcvrd->OA->SAI/SDK
Covered below 3 scenarios:
Details if related