Skip to content

[yang] support acl ACCEPT action#9784

Merged
wen587 merged 2 commits intosonic-net:masterfrom
wen587:acl_yang
Jan 21, 2022
Merged

[yang] support acl ACCEPT action#9784
wen587 merged 2 commits intosonic-net:masterfrom
wen587:acl_yang

Conversation

@wen587
Copy link
Copy Markdown
Contributor

@wen587 wen587 commented Jan 18, 2022

Fixes #9638

Why I did it

ACL have ACCEPT action indeed, but yang doesn't support it.

How I did it

Add 'ACCEPT' enum to sonic-types.yang.j2

How to verify it

Run the YANG model unit tests

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106

Description for the changelog

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

arlakshm
arlakshm previously approved these changes Jan 19, 2022
}
}
},
"ACL_TABLE_CTRLPLANE_ACCEPT_ACTION": {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The test name can be "ACL_PACKET_ACTION_VALIDATE_VALUE_ACCEPT", i.e. test name must be closer to describing what are we testing, instead of the config. Thx.

bingwang-ms
bingwang-ms previously approved these changes Jan 19, 2022
@wen587 wen587 dismissed stale reviews from bingwang-ms and arlakshm via 33be28b January 19, 2022 03:08
Copy link
Copy Markdown
Contributor

@ganglyu ganglyu left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Copy Markdown
Collaborator

@qiluo-msft qiluo-msft 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 check with other reviewers.

@wen587 wen587 merged commit 7e9a198 into sonic-net:master Jan 21, 2022
@dgsudharsan dgsudharsan added the Request for 202111 Branch For PRs being requested for 202111 branch label Mar 21, 2022
judyjoseph pushed a commit that referenced this pull request Mar 28, 2022
Why I did it
ACL have ACCEPT action indeed, but yang doesn't support it.

How I did it
Add 'ACCEPT' enum to sonic-types.yang.j2

How to verify it
Run the YANG model unit tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Included in 202111 Branch Request for 202111 Branch For PRs being requested for 202111 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[yang-models] missing ACCEPT in sonic-types.yang which used in ACL

8 participants