I’m building a lab automation pipeline and need to provision OPNsense 25.7 unattended. My goal is to manage DHCP static mappings via an API. I’ve enabled the API and checked the official documentation, but I can’t find a core endpoint for dhcpd static leases.
My approach:
• Using the configd socket for some tasks works.
• Found community Ansible collections that rely on unsupported methods like editing config.xml directly, which I want to avoid for HA sync compatibility.
Question: Is there a supported, API-driven method for managing DHCP static leases in the current version that I’ve missed? If not, is this functionality on the roadmap for the official API?
Leave a Reply