dmacvicar / terraform-provider-libvirt

Terraform provider to provision infrastructure with Linux's KVM using libvirt
Apache License 2.0
1.6k stars 459 forks source link

Rewrite network resource ip section (replace addresses with address list) #869

Open dmacvicar opened 3 years ago

dmacvicar commented 3 years ago

The current network resource schema prevents for some libvirt combinations to be declared. Given that most people using this resource are using it for testing, and they are indeed declaring some complex networks, the idea is to have a schema more close to the libvirt one eg. have a proper ip block with dhcp per address, mimicking the libvirt structure.

Plan

Related issues

tsweets commented 2 years ago

I compiled the network_v2 branch and tried this out. I was able to define a DHCP range and then reserve an IP address outside of that range. My VM booted and got the IP address that I wanted. This all behaved like I would have expected.