-
Notifications
You must be signed in to change notification settings - Fork 659
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
Added support for ACL entry netmask set with non-contiguous bits #1143
base: master
Are you sure you want to change the base?
Conversation
/gcbrun |
No major YANG version changes in commit 8a79b2b |
I'd prefer to see new leafs added instead of changing the existing Changing the type is a major, breaking change and, in my opinion, is not warranted in this case. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR and the research to show support on different platforms -- one note, the fact that platforms use two leaves to express address and mask does not imply that they support wildcard matches, so I'd prefer to keep these as two separate configurable entities.
+1 to comments in the thread from @LimeHat about how we implement the change -- see comments below too.
@LimeHat @robshakir Breaking change removed and implemented the sugested changes. Two new leaves were added to the specific case that is of concern. |
/gcbrun |
- Change type of ipv4 and ipv6 source and destinations address to oc-inet:ipv4-address. - Creation of source/destination-address-mask leaves to alow wildcard masks
Creation of ipv4-prefix-mask-type and ipv6-prefix-mask-type.
Add sugestions of the reviewer: - Remove braking change - Add two new leaves to be used in the case of non-wildcard matches that cannot be expressed by a CIDR mask.
Deleting the changes as the typedef is not needed anymore.
- Changed the name of leaves source-address-mask and destination-address-mask to source-wildcard-mask and destination-wildcard-mask. - Increase specification ot the description of masked-source-address and masked-destination-address leaves.
26d54de
to
8489996
Compare
@dplore can you /gcbrun again for this PR? |
/gcbrun |
Added support for ACL entry netmask set with non-contiguous bits
This pull resquest is being created in the context of issue 1082
In the current OpenConfig, configuration of source-address and destination-address leaves in the /oc-acl:acl/acl-sets/acl-set/acl-entries/acl-entry/ipv4/config (or ipv6) xpath are only supported with netmasks that are left-contiguous, cause this leaves are defined with type oc-inet:ipv4-prefix or oc-inet:ipv6-prefix, which only allows CIDR mask format.
The contiguous mask is applicable when assigning an IP address to an interface, or while adding routes. However, it does not necessarily need to be contiguos for ACLs. ACL's should be capable of filtering based on any kinds of masks. This way multiple non consecutive ranges of networks can be covered in one shot.
Change Scope
Platform Implementations