Create Network Appliance Vlan documentation doesn't match code behavior

Tib
Conversationalist

Create Network Appliance Vlan documentation doesn't match code behavior

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
alemabrahao
Kind of a big deal
Kind of a big deal

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 Meraki 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.
Tib
Conversationalist

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

sungod
Kind of a big deal
Kind of a big deal

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

 

Until resolved, the option is use the workaround.

carterian
Meraki Employee
Meraki Employee

Hi @Tib 

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 @alemabrahao is valid.

Kindly open a case with Support to help prioritize a fix. 

Tib
Conversationalist

Hi @carterian ,

 

I've opened ticket #13224769.

 

Thanks !

Get notified when there are additional replies to this discussion.