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

[201911][openconfig_acl] Allow setting ICMP type/code to 0 #6941

Merged
merged 1 commit into from
Mar 3, 2021

Conversation

daall
Copy link
Contributor

@daall daall commented Mar 2, 2021

Signed-off-by: Danny Allen daall@microsoft.com

Why I did it

There is a bug in how pyangbind translates yang models into python bindings. The model always sets integer values to 0 by default, so there is no way to check if a user has provided a value that is equal to 0. This is problematic for ICMP and VLAN (among others) because 0 is a valid input value.

Because 201911 is still using python2, we need a separate PR from #6932.

How I did it

Generated the bindings for python2.

How to verify it

Run sonic-mgmt tests to verify existing acl behavior is intact. See also new tests in sonic-net/sonic-utilities#1469.

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

  • 201811
  • 201911
  • 202006
  • 202012

Description for the changelog

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

Signed-off-by: Danny Allen <daall@microsoft.com>
@daall daall merged commit 5975d54 into sonic-net:201911 Mar 3, 2021
@daall daall deleted the 1911_openconfig_bug_ffix branch March 3, 2021 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants