Comments (7)
There is no official support forum for scripts in this repository, but you can always try the Meraki Community API section, if you want input from people who have run them: https://community.meraki.com/t5/Developers-APIs/bd-p/api
If you suspect that you might be hitting a bug, then a GitHub issue, like the one you created, is the correct way to get our attention.
Could you elaborate a bit more on the symptom you are experiencing? What do you refer to as new networks vs an existing one?
from automation-scripts.
from automation-scripts.
-
Do you see configuration changes being applied though? If you see config being applied, but no entries in the Change log, then that would be an issue in the Change log itself, and not something that can be fixed in this piece of code. If that is the case, I would recommend opening a case with Meraki support. If you are not seeing config being applied, even though it should, let me know, as it might be caused by an issue in the script.
-
It is a very long time since I wrote this script, but if I decipher my code correctly, it should work for existing networks as well. It attempts to add networks if they do not exist, and after that attempts to apply config to both newly created and existing networks. That is the intention at least. If your results are different, let me know.
from automation-scripts.
from automation-scripts.
Sounds like the script has a bug or could use an additional feature. I am working on something else right now, so cannot take a look at possible modifications immediately.
If someone in the community would like to take a stab at improving this script, let me know. Otherwise, I will look into this more closely once I am able to.
from automation-scripts.
from automation-scripts.
As an update, I learned that v0 has been sunsetted and is to be replaced with v1.
https://developer.cisco.com/meraki/api/#!introduction/meraki-dashboard-api-v0
Having done that, I'm now getting some errors.
C:\data\OneDrive - DYOPATHCORP\Mailing List\Cisco Notes\Meraki Notes\Scripting>C:\Users"Jeff G"\AppData\Local\Programs\Python\Python311\python.exe migrate_cat3k.py -k -o -i migrate_cat3k_JTG3.txt
Reading init config file...
Fetching dashboard organization...
Reading configuration from source devices...
ERROR 09: Could not read source config file: IOS-3750X-config3.cfg
ERROR 18: Unable to read configuration from source "IOS-3750X-config3.cfg"
Parsing source configration...
Creating networks...
Traceback (most recent call last):
File "C:\data\OneDrive - DYOPATHCORP\Mailing List\Cisco Notes\Meraki Notes\Scripting\migrate_cat3k.py", line 922, in
main(sys.argv[1:])
File "C:\data\OneDrive - DYOPATHCORP\Mailing List\Cisco Notes\Meraki Notes\Scripting\migrate_cat3k.py", line 752, in main
if not existing['type'] in ['switch', 'combined']:
~~~~~~~~^^^^^^^^
KeyError: 'type'
Here is the contents of the init config file.
interface GigabitEthernet1/0/9
description Reserved for CVCUPS01 - Eth 0
switchport access vlan 102
switchport mode access
spanning-tree portfast edge
Is there a certain file structure I should be using?
Thanks in advance.
Jeff
from automation-scripts.
Related Issues (20)
- Migrate code to new API HOT 4
- Merakilicensealert.py keeps returning TypeError: list indices must be integers or slices, not str HOT 5
- uplink.py multiple Orgs HOT 5
- "@ ERROR 09: Unable to contact Meraki cloud" for deviceupdownstatus.py HOT 2
- "mxfirewallcontrol.py" does not like "tag" filter HOT 4
- manageadmins.py not adding adminstrators HOT 6
- Rerwite of mxfirewallcontrol.py for Dashboard API v1 HOT 1
- <Tag> all ports with <type> HOT 10
- Rewrite scripts to use API key saved as environment variable HOT 8
- Terraform provider HOT 1
- Two seperate issues for mxfirewallcontrol.py HOT 7
- mxfirewallcontrol.py specify cellularFirewallRules HOT 1
- Single LAN is not available for networks in passthrough mode HOT 5
- Issue with csv writing HOT 4
- backup_configs - Operations CSV Files HOT 1
- AttributeError: 'DashboardAPI' object has no attribute 'mx_l3_firewall' HOT 3
- manageadmins.py stopped working HOT 2
- mx_firewall_control - Unable to update ruleset from input-file or directly HOT 1
- Issue with manage_devices.py and manage_network.py
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from automation-scripts.