Skip to content

Conversation

@longhuan-cisco
Copy link

@longhuan-cisco longhuan-cisco commented Jul 14, 2025

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:

  1. attr_list only contains traditional (non-JSON based) serdes attributes
  2. attr_list only contains custom (JSON based) serdes attributes
  3. attr_list contains a mixed of both

Details if related

@longhuan-cisco longhuan-cisco requested a review from prsunny as a code owner July 14, 2025 23:04
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@longhuan-cisco
Copy link
Author

@prgeor @mihirpat1 could you please review, thanks

@longhuan-cisco longhuan-cisco requested a review from prgeor July 27, 2025 07:19
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@longhuan-cisco longhuan-cisco requested a review from prgeor October 27, 2025 07:32
@prgeor
Copy link
Contributor

prgeor commented Oct 27, 2025

@prsunny can you merge?

@longhuan-cisco
Copy link
Author

@prsunny can you merge?

@prsunny kindly reminder, thanks

@prsunny
Copy link
Collaborator

prsunny commented Nov 10, 2025

@longhuan-cisco , i see new boost library added, can you provide description of why its added?

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@longhuan-cisco
Copy link
Author

@longhuan-cisco , i see new boost library added, can you provide description of why its added?

@prsunny Sure, added explantation in PR description.

In today's orchagent code base, boost library has been used in multiple places, e.g.:

#include <boost/algorithm/string.hpp>

#include <boost/functional/hash.hpp>

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@prgeor
Copy link
Contributor

prgeor commented Nov 15, 2025

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants