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

[pbh]: Add PBH OA #1782

Merged
merged 2 commits into from
Sep 1, 2021
Merged

[pbh]: Add PBH OA #1782

merged 2 commits into from
Sep 1, 2021

Conversation

nazariig
Copy link
Collaborator

@nazariig nazariig commented Jun 11, 2021

PBH architecture:

  1. PBH OA
  2. PBH Helper
  3. PBH Container

PBH business logic:

  1. PBH OA: receive the updates from Redis (Config DB)

  2. PBH Helper/PBH Container: parse data/store in internal cache:

    • If no errors observed - store task by table key in internal cache
    • If task with the same key already exists - postpone processing and proceed with the next one
    • Set/Remove tasks are stored in separate maps
    • For each type of Config DB entity (table, rule, hash and hash field) a dedicated PBH container is used
  3. PBH OA: deploy tasks:

    • Use Remove & Setup policy
    • Process create/update (SET) tasks in correct order
    • Do the same for delete (REMOVE) tasks

Why I did it

  • Done as part of PBH development

How I did it

  • Added PBH OA

How to verify it

  1. Add PBH configuration
  2. Run DPB

Which release branch to backport (provide reason below if selected)

  • 202106

Description for the changelog

  • N/A

A picture of a cute animal (not mandatory but encouraged)

      .---.        .-----------
     /     \  __  /    ------
    / /     \(  )/    -----
   //////   ' \/ `   ---
  //// / // :    : ---
 // /   /  /`    '--
//          //..\\
       ====UU====UU====
           '//||\\`
             ''``

orchagent/aclorch.cpp Outdated Show resolved Hide resolved
@prsunny
Copy link
Collaborator

prsunny commented Jun 16, 2021

@anish-n to review and sign-off

@nazariig nazariig marked this pull request as ready for review June 18, 2021 11:26
@liat-grozovik liat-grozovik requested a review from prsunny June 21, 2021 16:01
orchagent/aclorch.h Outdated Show resolved Hide resolved
orchagent/pbh/pbhmgr.cpp Outdated Show resolved Hide resolved
@prsunny
Copy link
Collaborator

prsunny commented Jul 14, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@sonic-net sonic-net deleted a comment from nazariig Jul 14, 2021
@sonic-net sonic-net deleted a comment from azure-pipelines bot Jul 14, 2021
@liat-grozovik
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@nazariig
Copy link
Collaborator Author

@anish-n please review and sign-off

@prsunny prsunny requested a review from bingwang-ms July 27, 2021 19:28
@nazariig
Copy link
Collaborator Author

@bingwang-ms please review and sign-off

anish-n
anish-n previously approved these changes Jul 29, 2021
Copy link
Contributor

@anish-n anish-n left a comment

Choose a reason for hiding this comment

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

PBH-wise looks good to me. Please wait for review from Bing on ACLorch and Prince on overall Orchagent prior to merge.

@nazariig
Copy link
Collaborator Author

@bingwang-ms just a kind reminder

@anshuv-mfst
Copy link

Hi @prsunny - could you please review and approve asap, this is needed in 202106 release

@bingwang-ms
Copy link
Contributor

@bingwang-ms just a kind reminder

Sorry for missing the review. Most part of aclorch looks good to me. Please check the comments I left. Thanks

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

bingwang-ms
bingwang-ms previously approved these changes Aug 22, 2021
@liat-grozovik
Copy link
Collaborator

@anish-n please approve.
@nazariig please check failures. if common lets take with @prsunny

@nazariig
Copy link
Collaborator Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Signed-off-by: Nazarii Hnydyn <nazariig@nvidia.com>
Signed-off-by: Nazarii Hnydyn <nazariig@nvidia.com>
@nazariig
Copy link
Collaborator Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@nazariig
Copy link
Collaborator Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@nazariig
Copy link
Collaborator Author

@prsunny we have got all the approvals, please review & merge

@nazariig
Copy link
Collaborator Author

@prsunny just a kind reminder

@prsunny
Copy link
Collaborator

prsunny commented Aug 31, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@prsunny
Copy link
Collaborator

prsunny commented Aug 31, 2021

@anish-n , @bingwang-ms , could you please sign-off?

@nazariig
Copy link
Collaborator Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@prsunny prsunny merged commit eb79ca4 into sonic-net:master Sep 1, 2021
raphaelt-nvidia pushed a commit to raphaelt-nvidia/sonic-swss that referenced this pull request Oct 5, 2021
* [pbh]: Add PBH OA.
* [pbh]: Helper and PBH Container

Signed-off-by: Nazarii Hnydyn <nazariig@nvidia.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.

8 participants