Python script to import 100+ static routes

henleyjj
Here to help

Python script to import 100+ static routes

Hi All, apologies if this question has already been asked.

I'm in need to add 150+ static routes in total into network(s) and just wondering if there's already a public python script available to bulk import static routes?

3 Replies 3
RaphaelL
Kind of a big deal
Kind of a big deal

Hi ,

 

150 static routes 😲 

 

You can use this endpoint : https://developer.cisco.com/meraki/api-v1/#!create-network-appliance-static-route

or https://developer.cisco.com/meraki/api-v1/#!create-device-switch-routing-static-route if the routing is done on a MS L3 switch.

 

I would also consider running an IGP instead of 150 static routes , seems like a nightmare is about to happen.

Thank a lot, I'll check it out. Its actually just max 60+ statics per a network but will have to import 150+ in total across couple of networks. Unfortunately can't run dynamic as the statics routes are for existing B2B connection...the whole solution is complicated enough.

PhilipDAth
Kind of a big deal
Kind of a big deal

Check out this script from the Meraki github to add static routes from a CSV file.

https://github.com/meraki/automation-scripts/tree/master/addroutes 

Get notified when there are additional replies to this discussion.
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.