-
Notifications
You must be signed in to change notification settings - Fork 405
T7832: Add support for assigning ACLs on subinterfaces #4916
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
base: current
Are you sure you want to change the base?
Conversation
|
All contributors have signed the CLA ✍️ ✅ |
|
❌ |
|
I have read the CLA Document and I hereby sign the CLA |
|
CI integration 👍 passed! Details
|
zdc
left a comment
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.
Thank you for the contribution! This feature expansion would indeed be very useful, but it requires a bit more code to function properly.
In this specific case, simply relaxing the protection is not sufficient.
There is a critical distinction between Ethernet and all other interfaces in this context. Ethernet has two key characteristics:
- It cannot be removed from the system while it is running (with rare exceptions, which we can disregard here).
- VPP configures it at a very early stage, ensuring that there is never a situation where an Ethernet interface is configured in VPP but not properly connected to it.
This does not apply to other interfaces. For example:
- Configure your example configuration.
- Remove a VLAN from the Ethernet configuration.
- Re-add the same VLAN.
The configuration may appear valid, but the ACL will not be applied to the interface anymore.
To ensure this works correctly, you must also establish the proper connection between VLANs and VPP ACLs.
natali-rs1985
left a comment
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.
We have a function that rertieves interfaces along with their sub-interfaces:
https://github.com/vyos/vyos-1x/blob/current/python/vyos/vpp/utils.py#L104
You can use the cli_ethernet_with_vifs_ifaces() function instead of cli_ifaces_list() when you specifically need all available sub-interfaces (such as for assigning ACLs)
Change summary
Support assigning ACLs to subinterfaces (e.g., eth0.100, eth5.200)
Types of changes
Related Task(s)
Related PR(s)
How to test / Smoketest result
Checklist: