Skip to content

[configure] Check for minimal SAI version#1246

Merged
StormLiangMS merged 2 commits intosonic-net:masterfrom
kcudnik:minsai
May 20, 2023
Merged

[configure] Check for minimal SAI version#1246
StormLiangMS merged 2 commits intosonic-net:masterfrom
kcudnik:minsai

Conversation

@kcudnik
Copy link
Collaborator

@kcudnik kcudnik commented May 19, 2023

since commit 8e1fb37 (v1.8.0) there is check enum binary backward compatibility so we are relaxing this check below, versions do not have to be equal but both need to be at least 2ebde24 (v1.9.0), this will make sure that enums are always ok, but since that commit some data structures changed and are not binary backwad compatible like next hop group api, acl_capability, structs are backward binary compatible from commit aed34c8, which closest tag version for it is commit 3ff228a (v1.12.0), so min version check should be set to (v1.12.0), but some production branches do not use that high SAI version yet, some use even version v1.7.0 which then it is impossible to provide even enum backward compatibility, check those links:

opencomputeproject/SAI#1297 (enums)
opencomputeproject/SAI#1795 (structs)

since commit 8e1fb37 (v1.8.0) there is check enum binary backward
compatibility so we are relaxing this check below, versions do not have
to be equal but both need to be at least 2ebde24 (v1.9.0), this will
make sure that enums are always ok, but since that commit some data
structures changed and are not binary backwad compatible like next hop
group api, acl_capability, structs are backward binary compatible from
commit aed34c8, which closest tag version for it is commit 3ff228a
(v1.12.0), so min version check should be set to (v1.12.0), but some
production branches do not use that high SAI version yet, some use even
version v1.7.0 which then it is impossible to provide even enum backward
compatibility, check those links:
opencomputeproject/SAI#1297 (enums)
opencomputeproject/SAI#1795 (structs)
@StormLiangMS StormLiangMS self-requested a review May 19, 2023 14:13
StormLiangMS
StormLiangMS previously approved these changes May 19, 2023
Copy link
Contributor

@StormLiangMS StormLiangMS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@StormLiangMS StormLiangMS merged commit 606703e into sonic-net:master May 20, 2023
@kcudnik kcudnik deleted the minsai branch May 20, 2023 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants