DASH icon indicating copy to clipboard operation
DASH copied to clipboard

Provide northbound gNMI/OpenConfig DASH-related schema & mapping to SAI

Open chrispsommers opened this issue 4 years ago • 14 comments

Provide (or identify if already exists) gNMI/OpenConfig schema which will be used to control DASH features, and also some description or specification of the mapping to equivalent SAI objects (i.e. what would need to be implememented in orchagent). Also see related https://github.com/Azure/DASH/issues/37

chrispsommers avatar Jan 15 '22 01:01 chrispsommers

@chrispsommers - this was discussed in the Community meeting today - yes? The target date is late January, early February - is that what you heard as well?

KrisNey-MSFT avatar Jan 19 '22 21:01 KrisNey-MSFT

Yes. looking forward to seeing this.

chrispsommers avatar Jan 19 '22 21:01 chrispsommers

is this information sufficient ? https://github.com/sonic-net/sonic-dash-api https://github.com/sonic-net/DASH/blob/main/documentation/general/dash-sonic-hld.md#32-dash-app-db

mgheorghe avatar Nov 12 '24 16:11 mgheorghe

@satyavallirama to be added

KrisNey-MSFT avatar Jan 29 '25 17:01 KrisNey-MSFT

Hi Chris

We followed two methods for bringing up of the SONiC DASH environment in containers with BMV2.

Method 1 "Sonic Dash" bring-up using Sonic Build image with Sai Dash components (Sai Thrift client and server) , SAI Redis , SWSS and SyncdDB.

GitHub link :- https://github.com/sonic-net/sonic-buildimage/tree/master

We are experiencing an Error with Sonic-Slave-bluster as a base image for all the container build's there after. While building we are getting an "error in image apt repository". Tried changing apt repository and also tried with mirror link of repository. But getting same issue with all tries.

Also tried to pull image directly. but image is in private docker Hub account. This attempt also failed.

Method 2 We tried to brought up SONiC DASH directly with the below git link, followed all the steps mentioned in that link, but while executing run-all-test, three tests are failing out of it. GitHub link :- https://github.com/sonic-net/DASH/tree/main/dash-pipeline

The following tests getting failed: SaiThriftDpappPktTest, SaiThriftVnetOutboundUdpPktTest, SaiThriftVnetOutboundUdpV6PktTest.

Error :- AssertionError: Expected packet was not received on device 0, port 0

Can you please guide us with any solution for this above issues.

satyavalli avatar Feb 12 '25 15:02 satyavalli

VPP w/SONiC build image - check w/ @r12f to see when it will be available

KrisNey-MSFT avatar Feb 12 '25 17:02 KrisNey-MSFT

Hi @satyavalli I'm not sure why you're mentioning this in this particular issue, is it related to gNMI schema? It seems like its own issue.

In any case, It would be helpful if you identify the commit version of the repo. Also, I would look for CI runs under https://github.com/sonic-net/DASH/actions for this same commit (assuming it's in main branch) and if those CI runs are successful, it sounds like you have a local issue in your development environment. It's hard to say how to solve the issue, do you have a different environment you can try the same thing on? Is the error repeatable every time?

chrispsommers avatar Feb 13 '25 01:02 chrispsommers

Subject: Preparation of Write-up on Northbound gNMI/OpenConfig DASH Schema and SAI Mapping for ACL (Issue 38)

Hi Team,

As part of addressing Issue 38, we are preparing a write-up on the northbound gNMI/OpenConfig DASH schema and SAI mapping for ACL. During this process, I came across (https://github.com/sonic-net/SONiC/wiki/ACL-Configuration-Requirement-Description) documentation ACL configuration in SONiC using ConfigDB, which includes ACL rules and ACL table flows. It appears that the entry structure of these ACL configurations in SONiC might differ from the OpenConfig ACL table entry structure.

Observations:

  1. SONiC ConfigDB ACL Configuration:

    • SONiC uses a specific format for ACL rules and tables in ConfigDB, which may not directly align with the OpenConfig ACL model which is using acl_sets, acl_entries etc.,.
    • The current implementation in SONiC DASH already has some SAI mappings for ACL, but it’s unclear if these are fully compliant with OpenConfig.
  2. OpenConfig ACL Structure:

    • OpenConfig defines a standardized ACL model with a hierarchical structure for ACL sets, entries, and actions.
    • The table entry structure in OpenConfig might differ from SONiC’s current implementation, particularly in terms of naming conventions, hierarchy, and attribute definitions.

We have few Questions for the Community:

  1. SAI Mapping for ACL in SONiC DASH:

    • Is the existing SAI mapping for ACL in SONiC DASH already aligned with the requirements of Issue 38, or does it need to be updated to comply with OpenConfig?
    • If updates are needed, what would be the scope of changes required to make it OpenConfig-compliant?
  2. Alignment with OpenConfig:

    • Should we prioritize making the ACL schema and SAI mapping fully compliant with OpenConfig, even if it requires significant changes to the current SONiC implementation?
    • Are there any specific guidelines or constraints we should follow to ensure backward compatibility while transitioning to OpenConfig?
  3. Documentation and References:

    • Are there any existing resources or prior discussions in the community that address this alignment between SONiC DASH gNMI/Openconfig, ConfigDB and OpenConfig ACLs?

Thanks, SatyaValli

satyavalli avatar Feb 18 '25 08:02 satyavalli

hi @lguohan , @prsunny , and @r12f - @satyavalli is wondering if we can help with this question while TCS is working on Issue 38.

KrisNey-MSFT avatar Feb 19 '25 17:02 KrisNey-MSFT

Hi @lguohan , @prsunny , and @r12f We are working on Issue 38, can anyone of you please help with the above ACL question. And if there are any existing resources or prior discussions in the community that address this alignment between SONiC DASH gNMI/Openconfig please suggest us.

Thanks, Satya

satyavalli avatar Feb 25 '25 08:02 satyavalli

There s/be the yang model for SONiC ACLs - in Build Image, SONiC-mgmt, models, yang, sonic

KrisNey-MSFT avatar Feb 26 '25 17:02 KrisNey-MSFT

See email from Satya to SONiC team

KrisNey-MSFT avatar Mar 26 '25 15:03 KrisNey-MSFT

If we use DASH KVM, this is supported w/SONiC pipeline integrated. KVM is in SONiC-VS (platform) with DASH flavor. System control Start.

KrisNey-MSFT avatar Mar 26 '25 16:03 KrisNey-MSFT

Per convo w/SONiC team, closing this one

KrisNey-MSFT avatar Apr 30 '25 01:04 KrisNey-MSFT