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

detect MX in passthrough mode via API?

Highlighted
Conversationalist

detect MX in passthrough mode via API?

Im trying to write some audit/provision scripts in python - and i cannot seem to find any API call to get/set whether an MX appliance is in Routed mode, or Passthrough/VPN Concentrator mode ?

 

From an audit perspective, this also exposes a bug (?)

If VLANs were enabled prior to a network changing from Routed to Passthrough, then the getNetworkVlansEnabled() call returns True.

The next logical line of code is to query the VLANs which are supposedly in existence using getNetworkVlans()

This call will cause an exception and crash the script.

 

Has anyone else encountered this issue?

2 REPLIES 2
Highlighted
Meraki Employee

Re: detect MX in passthrough mode via API?

Hello @BreckanM 

 

Good catch. Thank you for the details about the getNetworkVlansEnabled() and getNetworkVlans().

 

There are two separate issues where the getNetworkVlans() is returning the VLANs when the MX is in Passthrough mode. This sounds like a bug and I would recommend opening a case with Meraki Support so that we can submit a bug report. Secondly, the script crashing due to getNetworkVlans() returning VLANs should be handled in the script itself so that it doesn't crash. Unfortunately, we provide the SDK/API Endpoints for you to use and we can only troubleshoot the bugs in these methods or end points.

 

Let me know if you have any questions.

 

Regards,

Meraki Team

Highlighted
Here to help

Re: detect MX in passthrough mode via API?

Hello Team Meraki,

 

Has an endpoint been added to Dashboard to get/set the MX mode (routed or VPN/passthrough)?  To @BreckanM point, this would be a really useful check to be able to use to determine other script logic based on the role of the MX.

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.