Manage DHCP Client
manage_dhcp_clientAdd, remove, enable, or disable a DHCP client on a specified router interface, with idempotent handling to prevent duplicates.
Instructions
Add, remove, enable, or disable a DHCP client on an interface. Idempotent by interface name: add returns already_exists if a DHCP client is already configured on the same interface.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| routerId | No | Router ID; omit to use the default router. | |
| action | Yes | Action to perform | |
| interface | Yes | Interface name — idempotency key (e.g. ether1, ether2) | |
| usePeerDns | No | Use DNS servers provided by DHCP server (add only) | |
| usePeerNtp | No | Use NTP servers provided by DHCP server (add only) | |
| addDefaultRoute | No | Add default route from DHCP (add only) | |
| comment | No | Optional comment (add only) | |
| dryRun | No | Preview changes without applying. | |
| confirmationToken | No | Token from a prior APPROVAL_REQUIRED response. Re-submit the identical call with this token to confirm the destructive action. |