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

[dash] Implement PL and route group API #3048

Merged
merged 81 commits into from
Sep 6, 2024

Conversation

theasianpianist
Copy link
Contributor

@theasianpianist theasianpianist commented Feb 14, 2024

What I did

  • Implement SAI attributes needed for private link
  • Update dashorchs to use new route group API
  • Update existing DASH tests to use new route group API
  • Add new PL tests

This PR is dependent on the following:

Merge plan is as follows:

  1. This PR will update the AZP build to take artifacts from the above sonic-saireds PR build to allow testing of orchagent changes with update SAI headers.
  2. Merge other intermediate PRs to get functionality working/tests passing. Once this PR has all checks passing, merge it.
  3. Re-run the sonic-sairedis PR checks. The PR checks/VS tests should now pass. Merge once checks pass
  4. Submit a new PR to swss to revert the AZP build back to taking the latest build artifacts from sonic-sairedis.

Why I did it

How I verified it

Details if related

Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
- Create outbound routing groups in SAI
- Add ENI route entries to help map ENI->route group->route group OID
- Update outbound routing key from ENI to route group.

Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
@theasianpianist theasianpianist changed the title [dash] Implement PL API [dash] Implement PL and route group API Aug 14, 2024
Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
@theasianpianist theasianpianist marked this pull request as ready for review August 14, 2024 22:31
Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
tests/dash/test_dash_pl.py Outdated Show resolved Hide resolved
theasianpianist and others added 12 commits September 4, 2024 02:14
Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
Copy link
Collaborator

@prsunny prsunny left a comment

Choose a reason for hiding this comment

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

ship it

@prsunny prsunny merged commit 5fd7a05 into sonic-net:master Sep 6, 2024
17 checks passed
prsunny pushed a commit that referenced this pull request Sep 8, 2024
*Use the latest master branch sairedis artifacts for building and testing
#3048 changed the AZP jobs to use a specific sonic-sairedis build/artifact. This PR is reverting the sonic-sairedis build back to the latest master after sonic-sairedis breaking changes are merged.
outbound_ca_to_pa_attrs.push_back(outbound_ca_to_pa_attr);
for (auto action: route_type_actions.items())
{
if (action.action_type() == dash::route_type::ACTION_TYPE_STATICENCAP)
Copy link

@mukeshmv mukeshmv Sep 10, 2024

Choose a reason for hiding this comment

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

@theasianpianist, UNDERLAY_DIP is not populated for static encap action. This will break the non PL case.

outbound_ca_to_pa_attr.value.u32 = SAI_OUTBOUND_CA_TO_PA_ENTRY_ACTION_SET_PRIVATE_LINK_MAPPING;
outbound_ca_to_pa_attrs.push_back(outbound_ca_to_pa_attr);

outbound_ca_to_pa_attr.id = SAI_OUTBOUND_CA_TO_PA_ENTRY_ATTR_UNDERLAY_DIP;
Copy link

@mukeshmv mukeshmv Sep 10, 2024

Choose a reason for hiding this comment

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

move UNDERLAY_DIP handling to static_encap action above. It is not specific to private link

qiluo-msft pushed a commit to sonic-net/sonic-swss-common that referenced this pull request Sep 10, 2024
sonic-net/sonic-swss#3048 moves DASH-specific VS tests into a separate folder
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