-
Notifications
You must be signed in to change notification settings - Fork 393
T7950: VPP: Unexpected None interface in CGNAT when ethernet subinterace is removed from vif #4830
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
|
👍 |
src/conf_mode/interfaces_ethernet.py
Outdated
| for vif in ethernet.get(vif_type, []): | ||
| vif_name = f'{ifname}.{vif}' | ||
|
|
||
| for path in ['vpp.nat44', 'vpp.nat.cgnat']: |
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.
Can we somehow extend the path or recursively check the entire VPP configuration?
There could be other places where we can find subinterfaces in the VPP config
For example:
set vpp interfaces bridge br1 member interface eth0.23
set vpp acl ip interface eth0.23
set vpp acl macip interface eth0.23
set vpp sflow interface eth0.23
I'm not against fixing this for NAT exclusively.
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.
At the moment subinterfaces are not allowed in any of this VPP configs.
dmbaturin
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.
I also feel there could be a general solution, but I'm also not against fixing it in the only already known place first.
|
I've made it more universal. @sever-sever @dmbaturin please check once more |
…face is removed from vif Do not allow to delete subinterface if it is in use in VPP features
|
CI integration ❌ failed! Details
|
sever-sever
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.
Do not allow the deletion of subinterfaces that are used in VPP
I did not do local tests
Do not allow to delete subinterface if it is in use in VPP NAT features
Change summary
Types of changes
Related Task(s)
Related PR(s)
How to test / Smoketest result
Before the fix:
After the fix:
Checklist: