Hi. i planing make a new network more then 2000+
it has only 1 MX device per in network.
can anyone help me to make a python script to make new network using information as below
Network Name | Address | MX serail | VLAN | MX IP | Subnet | Site to Site VPN | VPN Type | Hub VPN | Address |
Network 1 | 111 W Harbor Dr, San Diego, CA 92101 | aaaa-aaaa-aaaa | 1 | 5.5.5.1 | 255.255.255.0 | yes | Spoke | Network 0 | 111 W Harbor Dr, San Diego, CA 92101 |
Network 2 | 112 W Harbor Dr, San Diego, CA 92101 | aaaa-aaaa-aaab | 1 | 6.6.6.1 | 255.255.255.0 | yes | Spoke | Network 0 | 112 W Harbor Dr, San Diego, CA 92101 |
Network 3 | 113 W Harbor Dr, San Diego, CA 92101 | aaaa-aaaa-aaac | 1 | 7.7.7.1 | 255.255.255.0 | yes | Spoke | Network 0 | 113 W Harbor Dr, San Diego, CA 92101 |
Network 4 | 114 W Harbor Dr, San Diego, CA 92101 | aaaa-aaaa-aaad | 1 | 8.8.8.1 | 255.255.255.0 | yes | Spoke | Network 0 | 114 W Harbor Dr, San Diego, CA 92101 |
Take a quick look at the bulk network creation tool.
Also check out this collection of network automation scripts:
https://github.com/meraki/automation-scripts
More than likely, you should be using a template. Check out this example of deploying an MX into a network bound to a template.
https://github.com/meraki/automation-scripts/blob/master/deployappliance.py
Gents,
Be carefull using the template option.... It looks good at the beginning, however iw you want to change specific items, you can not change it.... Then you have to unbind, and create new one
I have a script which create projects sites....Also includes claiming devices etc etc.... Written in python
If you are interested... contact me .. (bit to big to post here 😉 )
Best regards
Ed
@Edgar-VO wrote:Gents,
Be carefull using the template option.... It looks good at the beginning, however iw you want to change specific items, you can not change it.... Then you have to unbind, and create new one
I have a script which create projects sites....Also includes claiming devices etc etc.... Written in python
If you are interested... contact me .. (bit to big to post here 😉 )
Best regards
Ed
Just saying, if you've got public code that you'd like to share, there are a few ways to do that easily. Github, Gitlab, hosted on a page of your own. Then once you've got it hosted, you can add it to the Devnet Code Exchange.
>It looks good at the beginning, however iw you want to change specific items, you can not change it
That is the best bit. Then you can guarantee that all your sites are set up the same,
Same with using deployment scripts..... 😉