opn_update_dnsmasq_range
Modify an existing dnsmasq DHCP range by UUID to adjust address range, lease time, or RA settings. Only provided parameters are changed, then the dnsmasq service is automatically reconfigured 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 | ||
| enabled | No | ||
| ra_mode | No | ||
| end_addr | No | ||
| interface | No | ||
| lease_time | No | ||
| prefix_len | No | ||
| start_addr | No | ||
| description | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||