Open vhsantos opened 1 week ago
I saw the #602 with similar background, but not sure when (or if it will be merged). Anyway, someone know why there is not data resource for the netbox_available_ip_address ?? In this case, should be easy to get the next free ip and kind of use it with the netbox_ip_address.
I know that it can maybe generate a race condition as well trying to create multiples objects at the same time, but maybe can works in some scenarios.
@vhsantos good to see I am not the only one.
My PR has one last issue, namely that it interacts unfavorably with the underlying netbox_ip_address
or netbox_available_ip_address
resource.
Any assignment can be left undone after changes to either ip resource.
What needs to be done is to add an external_assignment
boolean to both ip resources, so it knows to avoid updating/clearing any assignment.
Hi there,
Actually, Im creating some VMs (vsphere) and when the VMs has a "static IP" it works well using it with the resource netbox_ip_address, netbox_virtual_machine and netbox_interface, for example:
The issue come when I try to use the resource "netbox_available_ip_address", because in this case it always generate a reference cycle, for example:
I have tried to use the netbox_available_ip_address to get the free IP and create the VM, then use the netbox_ip_address to associate it with the virtual_machine_interface_id, but it complain that the IP is already been used. :-(
My goal is basically to use the free_ip to provising the VM and fill the netbox with as much info that come from the VM created.
any suggestion how continue here ?? Thanks in advance.