Decouple definition of subnet addresses from definition of DHCP range#321
Decouple definition of subnet addresses from definition of DHCP range#321Bischoff wants to merge 1 commit intodmacvicar:masterfrom Bischoff:master
Conversation
|
So what is the equivalent of I think the problem is that we are adding dhcp as default. However, the dhcp configuration in libvirt is not done through boolean flags, and this is my main concern. |
|
The equivalent of I have created a separate issue #323 as a place to discuss a full refactoring of the network creation. |
|
I just had a look at AWS and OpenStack providers, for comparaison. I do not really understand the AWS approach. For Openstack one reads:
I have renamed |
|
I think that maybe this should be part of #288, where disable-dhcp part is already implemented... |
|
ping @inercia - any progress ? |
|
@Bischoff so the pr #385 is adreessing this PR in more generic way. I took the intial draft from @inercia and improved it . This will work for sumaform creating the network. ( i need to fix small issues but the main functionality is already working). feel free to test it with sumaform TIA 🌹 ( let me know. If you want, i can build from src the provider and updating to ix78server the classical one so you can use it) |
|
@Bischoff i am closing this since i backported your changes to that PR linked above. ( so we can clean up a little the prs) Thank you for your efforts 🌞 |
|
Sure. Thanks for your merging efforts @MalloZup. I will keep my branch locally for some time in case we forgot some detail. |
What does this PR do?
If no addresses are declared for a network, then the bridge to the network does not get an IP address on the real host, making the network (and the VMs using it) unreacheable from the real host.
If addresses are declared, then a DHCP server is started on the network, but this is not always wished.
This PR adds a new
dhcpboolean flag, that lets someone, in conjunction with existingaddresseslist, set up an address for the bridge while not starting a DHCP server. This flag defaults totrue, thus keeping compatibility with existingmain.tffiles.Example
This setup:
results in:
Please notice the absence of unwanted:
The bridge gets an IP address as expected: