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

[everflow] align capability fetch with new swss implementation #4773

Merged
merged 2 commits into from
Dec 7, 2021

Conversation

stepanblyschak
Copy link
Contributor

@stepanblyschak stepanblyschak commented Nov 26, 2021

Signed-off-by: Stepan Blyshchak stepanb@nvidia.com

Description of PR

Summary: align capability fetch with new swss implementation
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911

Approach

What is the motivation for this PR?

To align with new AclOrch implementation added in sonic-net/sonic-swss#1982.

How did you do it?

Implemented acl_capabilities_facts.

How did you verify/test it?

Run the everflow test suite.

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

Signed-off-by: Stepan Blyshchak <stepanb@nvidia.com>
@stepanblyschak stepanblyschak requested a review from a team as a code owner November 26, 2021 13:40
test_ingress_mirror_on_ingress_acl = "MIRROR_INGRESS_ACTION" in acl_capabilities["INGRESS"]["action_list"]
test_ingress_mirror_on_egress_acl = "MIRROR_INGRESS_ACTION" in acl_capabilities["EGRESS"]["action_list"]
test_egress_mirror_on_egress_acl = "MIRROR_EGRESS_ACTION" in acl_capabilities["EGRESS"]["action_list"]
test_egress_mirror_on_ingress_acl = "MIRROR_EGRESS_ACTION" in acl_capabilities["INGRESS"]["action_list"]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we make it back compatible by checking switch_capabilities if acl_capabilities is empty?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@bingwang-ms
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
@bingwang-ms
Copy link
Collaborator

Look good to me. Let's merge it and have it verified in nightly test. Thanks

@bingwang-ms bingwang-ms merged commit fea06af into sonic-net:master Dec 7, 2021
AntonHryshchuk pushed a commit to AntonHryshchuk/sonic-mgmt that referenced this pull request Jan 4, 2022
…-net#4773)

* [everflow] align capability fetch with new swss implementation

Signed-off-by: Stepan Blyshchak <stepanb@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.

2 participants