Skip to content
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

[sai-gen] Support merging SAI specs. #577

Merged
merged 1 commit into from
Jun 17, 2024
Merged

Conversation

r12f
Copy link
Collaborator

@r12f r12f commented Jun 2, 2024

This change added the SAI spec merging support. This is to ensure any new SAI attribute changes will follow the rules below to help ABI compatibility:

  • All new attributes or action enum values will be added in the end of the list.
  • Existing attributes will be updated inline. In the future, we can add more check here, e.g., type changed in non-compatible way and etc.
  • All old attributes will be marked as deprecated instead of removed.

Recently, the tunnel APIs are added, but because it merged with the SAI spec PR together without rebase, it is not captured in the previous SAI spec. With SAI spec merging, we can see the changes are showing up in the expected sequence. This would be an example that demos the several usages of SAI spec.

valid_only: null
deprecated: null
- !!python/object:utils.sai_spec.sai_attribute.SaiAttribute
name: SAI_DASH_TUNNEL_TUNNEL_KEY
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hi @marian-pritsak , according to HLD, this one should be VNI. I wonder if you could help get it updated?

@KrisNey-MSFT
Copy link
Collaborator

Request to @marian-pritsak for assistance

@KrisNey-MSFT KrisNey-MSFT added the help wanted Extra attention is needed label Jun 14, 2024
@r12f r12f merged commit 235e43b into sonic-net:main Jun 17, 2024
11 checks passed
@r12f r12f deleted the user/r12f/sai-merge branch June 17, 2024 18:40
@KrisNey-MSFT KrisNey-MSFT removed the help wanted Extra attention is needed label Jul 9, 2024
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.

3 participants