Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Credentials Incorrect - Affecting Learning Labs #131

Open
xanderstevenson opened this issue Apr 17, 2023 · 0 comments
Open

Credentials Incorrect - Affecting Learning Labs #131

xanderstevenson opened this issue Apr 17, 2023 · 0 comments

Comments

@xanderstevenson
Copy link

Credentials in this repo are outdated

https://github.com/CiscoDevNet/dne-dna-code

This file specifically,

https://github.com/CiscoDevNet/dne-dna-code/blob/master/env_lab.py

Incorrect

# Values for the Always On IOS XE Sandbox
IOS_XE_1 = {
    "host": "sandbox-iosxe-recomm-1.cisco.com",
    "username": "developer",
    "password": "C1sco12345",
    "netconf_port": 830,
    "restconf_port": 443,
    "ssh_port": 22
}

Correct

# Values for the Always On IOS XE Sandbox
IOS_XE_1 = {
    "host": "sandbox-iosxe-recomm-1.cisco.com",
    "username": "developer",
    "password": "lastorangerestoreball8876",
    "netconf_port": 830,
    "restconf_port": 443,
    "ssh_port": 22
}

See here for details: DevNet Sandbox - Workspace - Lab Catalog - IOS XE on CSR Recommended Code AlwaysOn (cisco.com)

This affects this LL (and probably more):

Python says hello with ncclient - Cisco DevNet Learning Center

In addition, this sandbox, which is listed twice in env_lab.py for a reason unknown to me, has the incorrect SSH port.

Incorrect

NXOS_1 = {
    "host": "sbx-nxos-mgmt.cisco.com",
    "username": "admin",
    "password": "Admin_1234!",
    "netconf_port": 10000,
    "restconf_port": 443,
    "nxapi_port": 80,
    "ssh_port": 8181
}

Correct

NXOS_1 = {
    "host": "sbx-nxos-mgmt.cisco.com",
    "username": "admin",
    "password": "Admin_1234!",
    "netconf_port": 10000,
    "restconf_port": 443,
    "nxapi_port": 80,
    "ssh_port": 22
}

See this page for details: DevNet Sandbox - Workspace - Lab Catalog - Open NX-OS Programmability (cisco.com)

Finally,

We have one more (as far as I can tell) that needs updating. However, this one I'm not sure about, because it's using the 'express' environment.

Incorrect

elif ENVIRONMENT_IN_USE == "express":
DNA_CENTER = {
"host": "sandboxdnac2.cisco.com",
"port": 443,
"username": "dnacdev",
"password": "D3v93T@wK!"
}

Correct

elif ENVIRONMENT_IN_USE == "express":
DNA_CENTER = {
"host": "sandboxdnac2.cisco.com",
"port": 443,
"username": "devnetuser",
"password": "Cisco123!"
}

Details: DevNet Sandbox - Workspace - Lab Catalog - Cisco DNA Center AO2 2.3.3.5

vvaliapa added a commit that referenced this issue Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant