dmacvicar / terraform-provider-libvirt

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

Allow configuring the start of DCHP range #954

Open elprans opened 2 years ago

elprans commented 2 years ago

Currently, DHCP, if enabled, uses the entire range of network addresses, sans network, gateway and broadcast. This makes life difficult for scenarios where some static address allocation is needed and is performed outside of Terraform configuration. Help this by allowing the configuration of the DHCP address range via the new range_start_offset attribute on the dhcp block. The default is 2, which is equivalent to the current behavior of skipping the first two addresses.