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

Add an internal config table to apply unexposed configurations to switch before testing #638

Merged
merged 8 commits into from
Nov 5, 2024

Conversation

ShaofengWu123
Copy link
Contributor

@ShaofengWu123 ShaofengWu123 commented Nov 1, 2024

This PR renamed the table underlay_mac to internal_config. The new internal_config table is ignored for SAI API generation and will be used for setting switch to a initial state required by some test cases.
For example, setting flow_enabled to False will cause packet to bypass the flow table in the pipeline. In order to test dash flow, we can set flow_enabled to True before corresponding tests, e.g. ptf test saidashflow.py.

}

printf("Inserted entry into internal_config table successfully");

return SAI_STATUS_SUCCESS;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Better to add individual test fixture to update internal_config, instead of in apiInitialize

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removing this part from this PR to become another PR.

@ShaofengWu123 ShaofengWu123 changed the title [Draft] Add an internal config table to apply unexposed configurations to switch before testing Add an internal config table to apply unexposed configurations to switch before testing Nov 5, 2024
@jimmyzhai jimmyzhai merged commit ee1fa23 into sonic-net:main Nov 5, 2024
4 checks passed
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