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

Add time-based ACL support #11989

Draft
wants to merge 19 commits into
base: master
Choose a base branch
from
Draft

Conversation

wsycqyz
Copy link
Contributor

@wsycqyz wsycqyz commented Sep 7, 2022

Why I did it

Add time-based ACL support for:

  1. docker-orchagent
  2. openconfig-acl
  3. YANG

How I did it

Modify code according to HLD: Dynamic-ACL-Design.md (Currently is under PR review)
sonic-net/SONiC#1078

How to verify it

See HLD unit test and system test.

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205

Description for the changelog

  1. New daemon is introduced to dynamically add or remove ACL rules
  2. Related openconfig-acl and YANG is added or modified.

Link to config_db schema for YANG module changes

src/sonic-yang-models/yang-templates/sonic-time-based-acl.yang.j2

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

@wsycqyz wsycqyz closed this Sep 7, 2022
@wsycqyz wsycqyz reopened this Sep 7, 2022
@Blueve
Copy link
Contributor

Blueve commented Sep 7, 2022

Let's mark this as draft here since the HLD is still under reviewing

@wsycqyz
Copy link
Contributor Author

wsycqyz commented Sep 7, 2022

Let's mark this as draft here since the HLD is still under reviewing

Sure.

@wsycqyz wsycqyz marked this pull request as draft September 7, 2022 04:37
@@ -288,3 +288,19 @@ dependent_startup_wait_for=swssconfig:exited
environment=ASAN_OPTIONS="log_path=/var/log/asan/fdbsyncd-asan.log{{ asan_extra_options }}"
{% endif %}
{%- endif %}

{% if DEVICE_METADATA.localhost.type %}
{% if DEVICE_METADATA.localhost.type == "BmcMgmtToRRouter" %}
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we use a more general flag?
Such as add a time_based_acl: enabled in device metadata?

@qiluo-msft
Copy link
Collaborator

Could you share the HLD link in PR description?

@lguohan
Copy link
Collaborator

lguohan commented Nov 2, 2022

i feel there are quite a few concerns on the hld from the community? can we see how we address those concerns?

@wsycqyz
Copy link
Contributor Author

wsycqyz commented Nov 3, 2022

Could you share the HLD link in PR description?

PR description is updated.

@wsycqyz
Copy link
Contributor Author

wsycqyz commented Nov 3, 2022

i feel there are quite a few concerns on the hld from the community? can we see how we address those concerns?

The questions are concerns are well collected. As Jing is on DRI until Friday, I will have a meeting with him next Monday to address these questions and concerns.

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.

5 participants