-
-
Notifications
You must be signed in to change notification settings - Fork 252
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
Add support for ipv4.dhcp.ranges
on OVN
#1097
Comments
Hi Stéphane, I'd like to start contributing to Incus, and I think this is a good first issue. You could give me some advice on where to change the code to add support for DHCP ranges? Looking into the code, I think I should add a config https://github.com/lxc/incus/blob/main/internal/server/network/driver_ovn.go#L1796 Furthermore, I should check here if |
So the first thing to do is going to be making the configuration option be valid for OVN.
The main catch here is that the logic must be somewhat reversed, so say you have
Now if we are to set a
Per https://man7.org/linux/man-pages/man5/ovn-nb.5.html#Logical_Switch_TABLE OVN supports a range syntax too, so to render a range between |
I've created a pull request with a WIP label because I want to know how I can use the OVN range syntax to parse from it to IP. Range or something like that. I need to treat it like a string, parse it, and before converting it to ip.Range type? |
Sorry for the delay. So yeah, you should be able to:
|
Sorry for the delay in responding. Now I can get the OVN range value, but somewhat I need to do the reversed logic. So if I have |
Yeah, given
|
hi, I'm unassigning this issue due to having no time to work on this. I appreciate the help and I'll pick another issue soon to contribute to the project @jonatas-lima opened a PR. |
Closes #1097 Signed-off-by: Jonatas Ferreira <jonatas.lima@luizalabs.com>
Closes lxc#1097 Signed-off-by: Jonatas Ferreira <jonatas.lima@luizalabs.com>
As discussed in https://discuss.linuxcontainers.org/t/ovn-dhcp-ranges/21290, OVN supports an
exclude_ips
configuration key on the logical switch. This works as reverse of the Incus syntax but it should be easy enough to take the subnet, remove the DHCP range from it and then put in the rest as the exclusion in OVN.The text was updated successfully, but these errors were encountered: