staticRoutes API call does not update the "Active" field

RandyM
Here to help

staticRoutes API call does not update the "Active" field

I'm running into an issue with the staticRoutes API call.  The route is added, but the "Active" field is left blank and I have not found a way to set it.

 

If you open the static route in the dashboard, it shows Active as "always", but clicking save does nothing.  You have to select another option like "While next hop responds to ping", Update, go back and change to "always", then you can Save it out.

 

I have not tested to see if the route is working correctly since it would appear it's defaulting to the "always" under the hood.  But this is still disconcerting to see in the dashboard.

 

curl -L -H 'X-Cisco-Meraki-API-Key: <key>' -H 'Content-Type: application/json' -X POST --data-binary '{"name":"VOIP","subnet":"192.168.10.0/24","gatewayIp":"10.15.5.1"}' 'https://dashboard.meraki.com/api/v0/networks/N_123456789/staticRoutes'

 

Screenshot from 2017-11-30 14-55-53.png

https://dashboard.meraki.com/api_docs#add-a-static-route

 

Any thoughts?

 

Thanks,

Randy

 

6 Replies 6
colo
Meraki Alumni (Retired)
Meraki Alumni (Retired)

Hi Randy,

 

It sounds like the UI is displaying "Active: " instead of the correct "Active: always" when you add a route via API. I would suggest reporting this to Meraki support. It would also be good to test it and confirm that there is no impact on the functionality of your network. 

 

 https://meraki.cisco.com/support/

Colin Lowenberg
Take the Meraki Challenge
solutions.meraki.com/challenge

Thank you, I opened up a support case.

Dear Randy,

 

did you get an answer from Meraki regarding this issue?

Is it possible to set the "active" field via API?

 

I would like to set "while next hop respond to ping" via API

 

many thanks,

 

Oliver

I did get a response from Support.  Engineering fixed it about a month later.  However I haven't tested it.  I believe all that has changed is that an API added static route will now show "Active" on the web.

 

In terms of changing the type of Active, I don't believe the API exposes that yet.

Hi @Oliver_Pinisch,

 

Did you ever get an answer for this? Agreed, the ability to set "while next hop respond to ping" via API would be extremely useful.

Hi,

 

no, didn´t get an answer for this.

Still have to set it manually, after deploying sites via API

Get notified when there are additional replies to this discussion.