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

orchagent: DASH changes #2459

Merged
merged 5 commits into from
Nov 5, 2022
Merged

orchagent: DASH changes #2459

merged 5 commits into from
Nov 5, 2022

Conversation

prabhataravind
Copy link
Contributor

  • Introduce DASH specific orchs - DashOrch, DashVnetOrch and DashRouteOrch

  • Introduce changes to handle various DASH table schemas and operations

  • Changes in bulker to introduce new constructors for DASH-related Entity/Object bulkers

  • Changes to support new DASH tables and orchs in orchdaemon

  • Changes to support new DASH APIs in saihelper

  • Makefile changes to support compilation

  • References: https://github.com/Azure/DASH/blob/main/documentation/general/design/dash-sonic-hld.md

  • Verifications done: Manual testing with configurations referenced in the HLD above.

  • Issues: Intermittent failures with bulk operations on DASH_VNET_MAPPING_TABLE, dependency related failures when deleting DASH_VNET and DASH_ENI objects when there are objects with references to these objects that are yet to be deleted.

Signed-off-by: Prabhat Aravind paravind@microsoft.com

What I did

Why I did it

How I verified it

Details if related

@marian-pritsak
Copy link
Collaborator

Do we intend to set admin state of ENI?

@Pterosaur Pterosaur mentioned this pull request Sep 28, 2022
@prabhataravind prabhataravind requested review from Pterosaur and removed request for theasianpianist, prsunny and oleksandrivantsiv September 29, 2022 15:47
@prabhataravind
Copy link
Contributor Author

Yes, I have fixed this.

void doTaskRoutingTypeTable(Consumer &consumer);
bool addApplianceEntry(const std::string& appliance_id, const ApplianceEntry &entry);
bool removeApplianceEntry(const std::string& appliance_id);
bool addRoutingTypeEntry(const std::string& routing_type, const RoutingTypeEntry &entry);
Copy link
Collaborator

Choose a reason for hiding this comment

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

RoutingTypeEntry is expected to be a list

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will fix this in a subsequent commit along with handling list of actions for DASH_ROUTING_TYPE_TABLE

Copy link
Contributor

@theasianpianist theasianpianist left a comment

Choose a reason for hiding this comment

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

lgtm, please wait for other reviews

* Introduce DASH specific orchs - DashOrch, DashVnetOrch and DashRouteOrch

* Introduce changes to handle various DASH table schemas and operations

* Changes in bulker to introduce new constructors for DASH-related Entity/Object bulkers

* Changes to support new DASH tables and orchs in orchdaemon

* Changes to support new DASH APIs in saihelper

* Makefile changes to support compilation

* References: https://github.com/Azure/DASH/blob/main/documentation/general/design/dash-sonic-hld.md

* Verifications done: Manual testing with configurations referenced in the HLD above.

* Issues: Intermittent failures with bulk operations on DASH_VNET_MAPPING_TABLE, dependency related failures when deleting DASH_VNET objects when there are objects with references to these objects that are yet to be deleted.

Signed-off-by: Prabhat Aravind <paravind@microsoft.com>
* Address review comments
* Gracefully handle certain error conditions during bulk set/del operations

Signed-off-by: Prabhat Aravind <paravind@microsoft.com>
    * Avoid "using" directives for namespaces in dash headers
    * Make equality checks for dash objects more robust
    * Clear pa_validation_object_statuses as well in VnetMapBulkContext clear()

Signed-off-by: Prabhat Aravind <paravind@microsoft.com>
    * Move ENI and QOS to DashOrch
    * Make ENI table handling simpler
    * Fix generation of hash seed for DASH entries
    * Avoid setting of explicit default values for QOS attributes
    * Changing log levels as appropriate to avoid incessant logging
    * Miscellaneous cosmetic code cleanups

Signed-off-by: Prabhat Aravind <paravind@microsoft.com>
    * Address handling of IPv6 keys for DASH_ROUTING_TABLE, DASH_ROUTING_RULE_TABLE and DASH_VNET_MAPPING_TABLE

Signed-off-by: Prabhat Aravind <paravind@microsoft.com>
@prabhataravind prabhataravind merged commit 6e967e2 into sonic-net:dash Nov 5, 2022
oleksandrivantsiv pushed a commit to oleksandrivantsiv/sonic-swss that referenced this pull request Dec 21, 2022
* orchagent: DASH changes

* Introduce DASH specific orchs - DashOrch, DashVnetOrch and DashRouteOrch

* Introduce changes to handle various DASH table schemas and operations

* Changes in bulker to introduce new constructors for DASH-related Entity/Object bulkers

* Changes to support new DASH tables and orchs in orchdaemon

* Changes to support new DASH APIs in saihelper

* Makefile changes to support compilation

* References: https://github.com/Azure/DASH/blob/main/documentation/general/dash-sonic-hld.md

* Verifications done: Manual testing with configurations referenced in the HLD above as well as automated vstests

Signed-off-by: Prabhat Aravind <paravind@microsoft.com>
theasianpianist pushed a commit to theasianpianist/sonic-swss that referenced this pull request Jul 21, 2023
* orchagent: DASH changes

* Introduce DASH specific orchs - DashOrch, DashVnetOrch and DashRouteOrch

* Introduce changes to handle various DASH table schemas and operations

* Changes in bulker to introduce new constructors for DASH-related Entity/Object bulkers

* Changes to support new DASH tables and orchs in orchdaemon

* Changes to support new DASH APIs in saihelper

* Makefile changes to support compilation

* References: https://github.com/Azure/DASH/blob/main/documentation/general/dash-sonic-hld.md

* Verifications done: Manual testing with configurations referenced in the HLD above as well as automated vstests

Signed-off-by: Prabhat Aravind <paravind@microsoft.com>
theasianpianist pushed a commit to theasianpianist/sonic-swss that referenced this pull request Jul 25, 2023
* orchagent: DASH changes

* Introduce DASH specific orchs - DashOrch, DashVnetOrch and DashRouteOrch

* Introduce changes to handle various DASH table schemas and operations

* Changes in bulker to introduce new constructors for DASH-related Entity/Object bulkers

* Changes to support new DASH tables and orchs in orchdaemon

* Changes to support new DASH APIs in saihelper

* Makefile changes to support compilation

* References: https://github.com/Azure/DASH/blob/main/documentation/general/dash-sonic-hld.md

* Verifications done: Manual testing with configurations referenced in the HLD above as well as automated vstests

Signed-off-by: Prabhat Aravind <paravind@microsoft.com>
theasianpianist pushed a commit to theasianpianist/sonic-swss that referenced this pull request Jul 27, 2023
* orchagent: DASH changes

* Introduce DASH specific orchs - DashOrch, DashVnetOrch and DashRouteOrch

* Introduce changes to handle various DASH table schemas and operations

* Changes in bulker to introduce new constructors for DASH-related Entity/Object bulkers

* Changes to support new DASH tables and orchs in orchdaemon

* Changes to support new DASH APIs in saihelper

* Makefile changes to support compilation

* References: https://github.com/Azure/DASH/blob/main/documentation/general/dash-sonic-hld.md

* Verifications done: Manual testing with configurations referenced in the HLD above as well as automated vstests

Signed-off-by: Prabhat Aravind <paravind@microsoft.com>
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.

6 participants