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

[multi-asic] Updated acl_facts #2514

Merged
merged 1 commit into from
Nov 19, 2020
Merged

Conversation

abdosi
Copy link
Contributor

@abdosi abdosi commented Nov 11, 2020

What I did:-
Enhance ACL Facts to support multi-asic platforms.

How I did:

  • ACL Fact read ACL Rules counters information for all network namespaces (if multi-asic platform) and aggregate them else read from host namespace.

  • ACL Rules counters are maintained as dictionary of tuple (rule_name, table_name, priority) and counters for this same tuple are aggregated from each asic.

  • The library is not enhanced to take asic-index (not needed as of now ) but to provide to global ACL rule counter view to user/application.

How I verify:-
Verified for both Single Asic and Multi Asic platforms.
ACL Fact Output remain same as before this change.

Signed-off-by: Abhishek Dosi <[email protected]>
@abdosi abdosi requested a review from wangxin November 11, 2020 19:46
@abdosi abdosi merged commit 4534dc1 into sonic-net:master Nov 19, 2020
@abdosi abdosi deleted the multiasic_aclfacts branch November 19, 2020 17:53
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