Add SAI_ATTR_VALUE_TYPE_UINT64_RANGE and UINT64_RANGE_LIST support for SAI v1.18.1#1
Merged
tjchadaga merged 1 commit intoApr 14, 2026
Conversation
…r SAI v1.18.1 Agent-Logs-Url: https://github.com/tjchadaga/sonic-sairedis/sessions/81707b95-87bb-4c0c-91b6-d431a84adffc Co-authored-by: tjchadaga <85581939+tjchadaga@users.noreply.github.com>
|
/azp run |
Copilot created this pull request from a session on behalf of
tjchadaga
April 14, 2026 19:23
View session
tjchadaga
approved these changes
Apr 14, 2026
Copilot stopped work on behalf of
tjchadaga due to an error
April 14, 2026 20:06
Copilot stopped work on behalf of
tjchadaga due to an error
April 14, 2026 20:15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds the required
SAI_ATTR_VALUE_TYPE_UINT64_RANGEandSAI_ATTR_VALUE_TYPE_UINT64_RANGE_LISTsupport to fix build failures caused by the SAI v1.18.1 submodule update in PR sonic-net#1827.SAI v1.18.1 introduces
sai_u64_range_t/sai_u64_range_list_ttypes and correspondingSAI_ATTR_VALUE_TYPE_UINT64_RANGE/SAI_ATTR_VALUE_TYPE_UINT64_RANGE_LISTenum values. The sonic-sairedis codebase has exhaustive switch statements oversai_attr_value_type_tthat fail to compile without handling these new variants.These changes are intended to be merged into PR sonic-net#1827 (
sai_header_v1.18.1branch).Changes
meta/SaiSerialize.cpptransfer_attributecases foru64range/u64rangelistsai_serialize_u64_range_list()functionsai_deserialize_u64_range_list()functionsai_free_listcase foru64rangelistmeta/Meta.cppUINT64_RANGE/UINT64_RANGE_LISTto all validation switch statements:meta_generic_validation_post_createmeta_generic_validation_set(with range list + range min/max validation)meta_generic_validation_create(with range list + range min/max validation)meta_generic_validation_objlistmeta_generic_validation_get(with range list + range min/max validation)saidiscovery/saidiscovery.cppUINT64_RANGEto primitive type case listHow to merge into PR sonic-net#1827
To add these changes to the
sai_header_v1.18.1branch: