e-breuninger / terraform-provider-netbox

Terraform provider to interact with Netbox
https://registry.terraform.io/providers/e-breuninger/netbox/latest/docs
Mozilla Public License 2.0
173 stars 117 forks source link

Allow setting virtual_machine_interface_id on ip_address separately #601

Open skoppe opened 1 month ago

skoppe commented 1 month ago

We use netbox_available_ip_address before we create a virtual machine on our hypervisor. However, in order to assign the ip to a virtual device we have to create a virtual_machine_interface_id and set it when defining the netbox_available_ip_address.

Alas, we know the virtual_machine_interface_id only after we created the virtual machine on our hypervisor.

It would be nice to have a separate ip_address_interface_id_assign resource that allows doing it separately.

What do you think?