Skip to content

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.

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?

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.

2 participants