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 Private Link mapping #327

Merged
merged 22 commits into from Oct 11, 2023
Merged

Conversation

marian-pritsak
Copy link
Collaborator

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

@marian-pritsak
Copy link
Collaborator Author

Pending NVGRE from #308

0xffffffffffffffffffffffff);

set_tunnel_mapping(underlay_dip,
overlay_dmac,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Should be unchanged

@prsunny
Copy link
Collaborator

prsunny commented May 12, 2023

@marian-pritsak , could you please check the build failure?

@chrispsommers
Copy link
Collaborator

@marian-pritsak , could you please check the build failure?

Probably the new table attributes for ENI P4 code require them to be set in any test case calling sai_create_eni(). If you look at the P4 code in the PR, some action parameters were added, e.g. see https://github.com/sonic-net/DASH/blob/fa7b1496912b54743d5c85e034924b5b08c53c37/dash-pipeline/bmv2/dash_pipeline.p4#LL116C1-L118C54

                         IPv6Address pl_sip,
                         IPv6Address pl_sip_mask,
                         IPv4Address pl_underlay_sip,

The c++ libsai test case calls sai_create_eni() but it wasn't updated to add the new parameters, yet the library enforces the number of parameters.

status = sai_create_eni(&eni_id, switch_id, attrs.size(), attrs.data());

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

@chrispsommers where is this test that's failing? I can't find it in the tests directory.

+ ptf --test-dir ./functional/ptf --pypath /SAI/ptf --interface 0@veth1 --interface 1@veth3 --test-case-timeout=1800 '--test-params=connection='\''tcp'\'';target='\''bmv2'\'';traffic_check='\''bidir'\'';'
/usr/local/lib/python3.8/dist-packages/ptf-0.9.3-py3.8.egg/EGG-INFO/scripts/ptf:19: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import imp
saidashacl.SaiThriftDashAclTest ... FAIL

======================================================================
FAIL: saidashacl.SaiThriftDashAclTest
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./functional/ptf/saidashacl.py", line 344, in setUp
    raise ae
  File "./functional/ptf/saidashacl.py", line 3[40](https://github.com/sonic-net/DASH/actions/runs/5548748391/jobs/10132077510?pr=327#step:17:41), in setUp
    self.setUpSwitch()
  File "./functional/ptf/saidashacl.py", line 205, in setUpSwitch
    self.eni = self.create_obj(sai_thrift_create_eni, sai_thrift_remove_eni, cps=10000,
  File "./functional/ptf/saidashacl.py", line 1[43](https://github.com/sonic-net/DASH/actions/runs/5548748391/jobs/10132077510?pr=327#step:17:44), in create_obj
    assert (obj != SAI_NULL_OBJECT_ID)
AssertionError

----------------------------------------------------------------------
Ran 1 test in 100.189s

FAILED (failures=1)
saidasheni.CreateDeleteEniTest ... ERROR

@chrispsommers
Copy link
Collaborator

@marian-pritsak I see you found the test case

@marian-pritsak
Copy link
Collaborator Author

@marian-pritsak I see you found the test case

Yes, I forgot there are two locations.

Signed-off-by: Marian Pritsak <marianp@mellanox.com>
@marian-pritsak marian-pritsak force-pushed the private_link branch 2 times, most recently from 1609cf6 to ebfb526 Compare September 24, 2023 22:56
Signed-off-by: Marian Pritsak <marianp@mellanox.com>
Signed-off-by: Marian Pritsak <marianp@mellanox.com>
@marian-pritsak
Copy link
Collaborator Author

SAI PR opencomputeproject/SAI#1907

@chrispsommers
Copy link
Collaborator

@marian-pritsak do you want to request review of this and move forward?

@KrisNey-MSFT
Copy link
Collaborator

Notes from 9/27/2023 DASH Community Call.
We seem to have a clean CI run, and PR1907 in the SAI repo (for SAI repo headers, with contents of PL objects).
Checking to see if this is now on hold, or need a review (see Chris' comment above).
Just making extended comments for the next call.

@KrisNey-MSFT
Copy link
Collaborator

Adding Prince & Riff to review

@prsunny prsunny merged commit 9fb130f into sonic-net:main Oct 11, 2023
4 checks passed
clarklee-guizhao added a commit to clarklee-guizhao/DASH that referenced this pull request Dec 3, 2023
* main: (75 commits)
  [dash-SAI] Enable warnings as errors (sonic-net#466)
  [SAI] wrong code generated in libsai sonic-net#415 (sonic-net#463)
  Fix incorrect IP in SONiC-DASH HLD VNET to VNET example. (sonic-net#459)
  DASH pipeline packet flow update proposal. (sonic-net#449)
  [libsai] Add attr name logging when doing get api (sonic-net#451)
  Build libsai deb packages in github workflow (sonic-net#450)
  Add Private Link mapping (sonic-net#327)
  [SAI] Update SAI submodule to the latest origin/master (sonic-net#446)
  [dash] Add libsai-debs target to create libsai debian packages (sonic-net#444)
  update p4 compile dependancy to avoid parallel  docker runs (sonic-net#443)
  [dash] Refactor libsai (sonic-net#438)
  [dash] Update SAI to latest v1.13 (sonic-net#435)
  [dash-pipeline] Refactor Makefiles (sonic-net#432)
  Remove ACL tags from BM (sonic-net#425)
  [submodule] Update SAI submodule to origin/master (sonic-net#431)
  [sai-api-gen] Write files only when changes are detected (sonic-net#429)
  Adds SAI_ROUTE_ENTRY_ATTR_PACKET_ACTION api to dash_underlay_routing (sonic-net#422)
  [SAI] Add missing check for api initialized
  [SAI] Print oids in hex form
  [SAI] Change asserts to return error codes and add missing switch api
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🔬Scoping
Development

Successfully merging this pull request may close these issues.

None yet

5 participants