06-23-2025 06:53 AM
Hi,
First, I've read https://community.meraki.com/t5/Developers-APIs/Create-VLAN-using-API-on-MX/m-p/250984#M11413
The docs state that dhcpLeaseTime is an accepted parameter/value for the https://developer.cisco.com/meraki/api-v1/create-network-appliance-vlan/ call.
But if you try to use it, it's just ignored.
Either the code should be corrected or the docs should be corrected.
What's the plan on that ?
Should I update the code to do a double call (create then update) or will this behavior be fixed in the dashboard API ?
Thanks !
Arnaud
06-23-2025 06:56 AM
There is nothing reported by Meraki, so what you can try is, create the VLAN using createNetworkApplianceVlan with the basic parameters needed and then run an updateNetworkApplianceVlan call to set dhcpLeaseTime, dnsNameservers and any other advanced DHCP settings.
06-23-2025 07:01 AM
Of course, that works, but :
- it doubles the number of API calls
- it doesn't address the discrepancy between the docs and the actual code
06-23-2025 08:49 AM
You can open a case with Meraki support to raise the issue.
Until resolved, the option is use the workaround.
06-23-2025 08:54 AM
Hi @abrand1
Our development team is aware of the issue. The createNetworkApplianceVlan API endpoint is ignoring some DHCP properties such as "dhcpHandling", "dhcpLeaseTime", "dhcpBootOptionsEnabled", and "dhcpOptions".
The workaround provided by @alessandrodematos is valid.
Kindly open a case with Support to help prioritize a fix.
06-26-2025 07:56 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide