Code Monkey home page Code Monkey logo

Comments (7)

mpapazog avatar mpapazog commented on August 17, 2024

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.

Lanlord7 avatar Lanlord7 commented on August 17, 2024

from automation-scripts.

mpapazog avatar mpapazog commented on August 17, 2024
  1. 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.

  2. 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.

Lanlord7 avatar Lanlord7 commented on August 17, 2024

from automation-scripts.

mpapazog avatar mpapazog commented on August 17, 2024

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.

Lanlord7 avatar Lanlord7 commented on August 17, 2024

from automation-scripts.

Lanlord7 avatar Lanlord7 commented on August 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.