-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenv_lab.py
50 lines (40 loc) · 1.15 KB
/
env_lab.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# User Input
# Please select the lab environment that you will be using today
# sandbox - Cisco DevNet Always-On / Reserved Sandboxes
# express - Cisco DevNet Express Lab Backend
# custom - Your Own "Custom" Lab Backend
ENVIRONMENT_IN_USE = "sandbox"
# Custom Lab Backend
DNA_CENTER = {
"host": "",
"username": "",
"password": ""
}
# End User Input
# Set the 'Environment Variables' based on the lab environment in use
if ENVIRONMENT_IN_USE == "sandbox":
# Values for the Always On IOS XE Sandbox
IOS_XE_1 = {
"host": "10.97.4.222",
"username": "cisco",
"password": "C1sco12345",
"netconf_port": 830,
"restconf_port": 443,
"ssh_port": 22
}
# Values for the Reservable IOS XE Sandbox
IOS_XE_2 = {
"host": "10.10.20.48",
"username": "developer",
"password": "C1sco12345",
"netconf_port": 830,
"restconf_port": 443,
"ssh_port": 22
}
elif ENVIRONMENT_IN_USE == "express":
DNA_CENTER = {
"host": "sandboxdnac.cisco.com",
"port": 443,
"username": "devnetuser",
"password": "Cisco123!"
}