dhcp_servers
List MikroTik DHCP server configuration by device name, returning interface, address pool, lease time, and authoritative status so you can inspect server settings, not handed-out leases.
Instructions
List DHCP server CONFIG (/ip/dhcp-server) - as opposed to
dhcp_leases, which lists the leases a server has handed out. Each
entry keeps every field RouterOS returns (name, interface,
address-pool, lease-time, authoritative, comment, ...), with
disabled normalized to bool | None (formatting.coerce_ros_bool
never a
== "true"string-equality trap, see that helper's docstring).authoritativeis left as RouterOS's own raw value (it can be"yes"/"no"/"after-2sec-delay"/... - not a strict boolean - so it is not coerced).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |