freebox_dhcp_lease (Resource)

Manages a DHCP static lease on the Freebox.

Example

resource "freebox_dhcp_lease" "example" {
  mac      = "00:11:22:33:44:55"
  ip       = "192.168.1.100"
  hostname = "my-device"
  comment  = "My device static lease"
}

Schema

Required

  • ip (String) IP address to assign to the target device
  • mac (String) MAC address of the target device

Optional

  • comment (String) Comment of the DHCP lease
  • hostname (String) Hostname of the target device

Read-Only

  • id (String) Unique identifier of the DHCP lease

Import

# -------------------------------------------- 👇 is the MAC address of the device (uppercased)
terraform import "freebox_dhcp_lease.example" 00:11:22:33:44:55