cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2199
Views
6
Helpful
5
Replies

Create Network Appliance Vlan documentation doesn't match code behavior

abrand1
Visitor

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

5 Replies 5

aleabrahao
Meraki Community All-Star
Meraki Community All-Star

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.

I am not a Cisco employee. My suggestions are based on documentation of Meraki best practices and day-to-day experience.

Please, if this post was useful, leave your kudos and mark it as solved.

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

You can open a case with Meraki support to raise the issue.

Until resolved, the option is use the workaround.

carterian
Cisco Employee
Cisco Employee

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.

Hi @carterian ,

I've opened ticket #13224769.

Thanks !