opn_update_dnsmasq_range
Modify a dnsmasq DHCP range by UUID, updating only the provided fields (e.g., address range, lease time), then automatically reconfigure the service for immediate effect.
Instructions
Update a dnsmasq DHCP range by UUID and apply the configuration.
Use this when you need to change the address range, lease time, RA settings, or other properties. Only the parameters you provide are changed; all other settings are preserved.
After update, the dnsmasq service is automatically reconfigured. Changes take effect immediately. Use opn_list_dnsmasq_ranges first to find the UUID.
Parameters:
uuid: range UUID (from opn_list_dnsmasq_ranges)
interface: network interface name (e.g. 'lan', 'opt1')
start_addr: start of address range
end_addr: end of address range
prefix_len: IPv6 prefix length (e.g. '64')
ra_mode: Router Advertisement mode ('slaac', 'ra-stateless', 'ra-only')
lease_time: lease duration (e.g. '24h', '1h')
description: human-readable description
enabled: enable/disable the range
Returns: dict with 'result' (str), 'uuid' (str), and 'reconfigure_status'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes | ||
| interface | No | ||
| start_addr | No | ||
| end_addr | No | ||
| prefix_len | No | ||
| ra_mode | No | ||
| lease_time | No | ||
| description | No | ||
| enabled | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||