Professional Documents
Culture Documents
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
DEVNET Express
Algunos puntos a considerar:
Laptop
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
Locate the Lab Instructions
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
https://developer.cisco.com/learning/devnet-
express/devnet-express-meraki
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
DevNet Learning Labs | Terminology
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
Choose and Connect:
Your Development Environment
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
Which Development Environment will you use?
Local Dev Environment Remote Dev Environment
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
Your Local Environment
You will need the following on your laptop...
• Text Editor
Preferably one designed for coding and that understands Python syntax
• Bash Shell
• Python 3.6+ Interpreter
The code samples have been developed and tested with Python v3.6+
• Postman
• Internet Connectivity
The Meraki APIs are served from the cloud. You’ll need to be able to connect to these.
...and you will need to be comfortable using these tools the way you have them configured.
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
Option 2:
The Remote Development Environment
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
Connecting to the Remote Development Environment
Two Ways
Browser www
HTTPS RDP
“Guacamole”
AnyConnect
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
Connecting to the
Remote Development Environment
Using the Web Portal:
1. Browse to the Web
Portal URL.
2. Login using the VPN
Username & VPN
Password if prompted.
3. Click on the “CentOS”
workstation.
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
Finding the Code Editor | Atom
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
Setup your
Dev Environment
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
Download “git” the Code!
https://github.com/CiscoDevNet/meraki-code
• Open bash terminal, and run the following commands.
# Change to where you want your code
cd ~/code
# Mac or Linux
# Windows
py -3 –m venv venv
source venv/Scripts/activate
pip install –r requirements.txt
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
Prepare your Lab Environment File(s)
• Open ~/code/meraki-code/env_user.py in your code editor.
• Add:
• Your Webex Teams Access Token | We’ll show you where to get it.
• Webex Teams Room ID | We will share this with you in our Webex Teams space.
• Meraki API Key | We will share this with you in our Webex Teams space.
# User Input
WT_ACCESS_TOKEN = ""
WT_ROOM_ID = ""
MERAKI_API_KEY = "6bec40cf957de430a6f1f2baa056b99a4fac9ea0"
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
Install the Postman Collections
1. Open Postman.
2. Click Import
3. Select all of the files in:
~/code/meraki-code/postman
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
Verify!
Run the verify.py script to verify your development environment has
been setup successfully.
Issues?
Ensure you are working in the ~/code/meraki-code directory.
Ensure your Python virtual environment is active.
# Mac or Linux
python verify.py
# Windows
py verify.py
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
Wrap Up
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
What you learned in this module…
• Choose your Development Environment and connect to your lab pod
• Clone the Code Repository
• Setup Python Virtual Environment
• Install Postman Collection and Environments
• Prepare Lab Environment Files
• Run Verification Script
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
Connect with Us and share Your Story…
@CiscoDevNet
#DevNetExpress
facebook.com/ciscodevnet/
http://github.com/CiscoDevNet developer.cisco.com
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
@CiscoDevNet | #DevNetExpress
Reference
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
Super Secret Guacamole Keyboard Shortcut
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
@CiscoDevNet | #DevNetExpress