cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Modifying VLAN for a network bound to template?

Highlighted
Getting noticed

Modifying VLAN for a network bound to template?

I have a client who's trying to automate their network migration, and currently, when they manually set up a new network and bind that network to a template, they can then go and modify the VLAN for that bound network.   

 

Video here:  https://share.getcloudapp.com/2Nurv5XY

 

However, when I try to automate these steps using the Meraki API, the API fails and I also can't modify the network manually after its bound    

 

Video:  https://share.getcloudapp.com/2NurvXpe

 

Also if I try to create a network manually, (ignoring the API), I still can't modify the VLAN once bound:  https://share.getcloudapp.com/eDu9l6ZP

 

 

The script gives me the following error here on trying to update the VLAN to a bound network:

 

"Error while updating VLAN for PV12345678_ltl : Cannot update applianceIp or subnet on a bound network's VLAN with same subnetting"

 

Output: https://share.getcloudapp.com/qGuDrKXj

 

 

I'm at a lost on how to proceed.   I don't get why the client can modify the bound networks manually, but I can't, neither manually, nor with the API.

 

Does anyone have any ideas?

Sidney Burks
Captive Portal and Meraki API Automation
Founder and CTO, Boundless Digital
sidney@boundless.fr
https://www.boundless.fr
3 REPLIES 3
Highlighted
Kind of a big deal

Re: Modifying VLAN for a network bound to template?

I'm pretty sure that VLANs aren't overridable when bound to a template, meaning you can't modify the bound network, only the template itself. If you're making API calls against the network ID that's bound it will fail. You have to use the NID of the template (which then implies that you changing that value for EVERY network that's bound to the template). 

 

I'll try and find the doc on this...

Highlighted
Kind of a big deal

Re: Modifying VLAN for a network bound to template?

Ahh, OK sorry I'm a bit off. The reason you can't change it is in the error message you stated. The template has the VLAN you are trying to modify set to "Same". 

 

If you go into the template and look at the VLANs you'll see a dropdown for "Same" or "Unique":

 

image.png

 

It's because you have that set to "Same" that you can't change it. It MUST be the same as all others bound to that template. If you need to change it then you're going to have to change that setting in the template. I don't know what that's going to do to the other networks that are bound to your template though so I'd suggest you do a lab test first, or call Meraki support and get their help. 

 

Unless someone else here knows?

Highlighted
Getting noticed

Re: Modifying VLAN for a network bound to template?

@jdsilva Thanks!  I suspected that had something to do with it, but didn't know where to start... I'll dig around to see if there are any settings to flip to see how that goes

Sidney Burks
Captive Portal and Meraki API Automation
Founder and CTO, Boundless Digital
sidney@boundless.fr
https://www.boundless.fr
Welcome to the Meraki Community!
To start contributing, simply sign in with your Cisco account. If you don't yet have a Cisco account, you can sign up.