Skip to content

[yang] Fixing Ethertype field regex in acl rule yang to accept decimal values#10108

Merged
qiluo-msft merged 2 commits intosonic-net:masterfrom
dgsudharsan:acl_ethertype_yang
Mar 17, 2022
Merged

[yang] Fixing Ethertype field regex in acl rule yang to accept decimal values#10108
qiluo-msft merged 2 commits intosonic-net:masterfrom
dgsudharsan:acl_ethertype_yang

Conversation

@dgsudharsan
Copy link
Copy Markdown
Collaborator

Why I did it

Fixing issue #9991
The ACL RULE table field ETHER_TYPE can accept both hex as well as decimal values. However yang model didn't allow decimal values. Fixed it to allow decimal values (same pattern as in hex (1536-65535)

How I did it

Updated yang model to handle decimal values

How to verify it

Added UT to verify it.

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

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

Description for the changelog

Link to config_db schema for YANG module changes

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

@dgsudharsan dgsudharsan requested a review from qiluo-msft as a code owner March 1, 2022 05:49
@dgsudharsan dgsudharsan requested a review from praveen-li March 1, 2022 05:50
@dgsudharsan dgsudharsan added the YANG YANG model related changes label Mar 1, 2022
@dgsudharsan
Copy link
Copy Markdown
Collaborator Author

/azpw run Azure.docker-slave-buster-arm64

@mssonicbld
Copy link
Copy Markdown
Collaborator

/AzurePipelines run Azure.docker-slave-buster-arm64

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@liat-grozovik
Copy link
Copy Markdown
Collaborator

@qiluo-msft , @praveen-li kindly reminder to review and signoff. This is issue for 202111.

@dgsudharsan dgsudharsan added the Request for 202111 Branch For PRs being requested for 202111 branch label Mar 10, 2022
"eStrKey" : "Pattern"
},
"ACL_RULE_L2_INVALID_ETHER": {
"desc": "Configure invalid MAC address format.",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why do you remove the UT for invalid MAC address?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I didn't remove any UT. I just corrected the description which was wrong.

@qiluo-msft qiluo-msft changed the title [yang]Fixing Ethertype field regex in acl rule yang to accept decimal values [yang] Fixing Ethertype field regex in acl rule yang to accept decimal values Mar 17, 2022
@qiluo-msft qiluo-msft merged commit 52c2a3a into sonic-net:master Mar 17, 2022
@judyjoseph
Copy link
Copy Markdown
Contributor

There are merge conflicts, please raise a new PR for 202111

@judyjoseph judyjoseph removed the Request for 202111 Branch For PRs being requested for 202111 branch label Mar 20, 2022
@dgsudharsan dgsudharsan added Request for 202111 Branch For PRs being requested for 202111 branch and removed Request for 202111 Branch For PRs being requested for 202111 branch labels Mar 21, 2022
dgsudharsan added a commit to dgsudharsan/sonic-buildimage that referenced this pull request Mar 21, 2022
…l values (sonic-net#10108)

Fixing issue sonic-net#9991
The ACL RULE table field ETHER_TYPE can accept both hex as well as decimal values. However yang model didn't allow decimal values. Fixed it to allow decimal values (same pattern as in hex (1536-65535)

Updated yang model to handle decimal values

Added UT to verify it.
@dgsudharsan
Copy link
Copy Markdown
Collaborator Author

There are merge conflicts, please raise a new PR for 202111

Raised here #10306

liat-grozovik pushed a commit that referenced this pull request Apr 10, 2022
…t decimal values (#10306)

Cherry-pick #10108

- Why I did it
Fixing issue #9991
The ACL RULE table field ETHER_TYPE can accept both hex as well as decimal values. However yang model didn't allow decimal values. Fixed it to allow decimal values (same pattern as in hex (1536-65535)

- How I did it
Updated yang model to handle decimal values

- How to verify it
Added UT to verify it.
@dgsudharsan dgsudharsan deleted the acl_ethertype_yang branch March 9, 2023 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug 🐛 Issue for 202111 YANG YANG model related changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants