Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Make SAI attrs mandatory for drop-on-miss tables #240

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

marian-pritsak
Copy link
Collaborator

If a table references another table (ENI->VNET_ID) where VNET table drops on miss, the SAI attribute VNET_ID in the ENI will be mandatory on create.

Omitting this attribute will no longer be allowed.

Signed-off-by: Marian Pritsak marianp@mellanox.com

If a table references another table (ENI->VNET_ID)
where VNET table drops on miss, the SAI attribute VNET_ID
in the ENI will be mandatory on create.

Omitting this attribute will no longer be allowed.

Signed-off-by: Marian Pritsak <marianp@mellanox.com>
@marian-pritsak
Copy link
Collaborator Author

Requires opencomputeproject/SAI#1616 and also ported to dash branch.

@@ -403,6 +422,8 @@ def write_sai_files(sai_api):
for table_name in all_table_names:
if table_ref.endswith(table_name):
param[OBJECT_NAME_TAG] = table_name
if is_table_deny_on_miss(sai_apis, table_name):
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would prefer this logic not be buried in the API generator. Can we use a P4 annotation instead?

@chrispsommers
Copy link
Collaborator

@marian-pritsak is this obsolete?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants