terraform-routeros / terraform-provider-routeros

Terraform Provider for Mikrotik RouterOS
Mozilla Public License 2.0
208 stars 60 forks source link

DHCP: Convert a dynamic lease to a static one #600

Closed vaerh closed 4 days ago

vaerh commented 1 week ago

We should try to add this feature for DHCP addresses.

vaerh commented 4 days ago

After reflecting on this issue, I conclude that this resource can be realized. But its work will contradict the concept of terraform: at the moment of deployment of the configuration we create a pool of IP addresses and make it possible to connect clients, but we can not describe the clients about the connection of which we do not know anything. The only correct way to create an entry with static IP address leases is to clearly describe them. Translation of dynamic records makes no sense, because we solve the issue of address fixing, but we lose the ability to manage the life cycle of the client record. Also, the further functioning of the deployed infrastructure has nothing to do with random processes occurring outside.