Getting Started With The Lab¶
Lab Overview¶
The lab environment runs in the WWT Programmability Foundations On-Demand Lab using an MDP exploration tool called YANG Suite and a web-based, interactive Python environment called JupyterLab.
- YANG Suite will allow you to explore YANG models and construct NETCONF RPC messages bodies using a web browser.
- JupyterLab will allow you to work through a series of YANG Suite tasks plus several Python-based NETCONF exercises using a web browser.
Lab Requirements¶
You only need a few things to start working through the labs:
-
A computer with the Google Chrome web browser.
- We test access to the lab environment with Chrome, and you may experience issues with other web browsers.
-
An account on wwt.com.
Lab Setup Instructions¶
The lab setup process is mostly automated although you will have to manually:
- launch a lab environment instance.
- Use a command to initiate the automated lab build.
Auto-provision the hands-on environment in the WWT Programmability Foundations Lab
Step 5
Click the System Tray icon and mouse over the Docker icon to reveal the service status:
Attention
The icon may take a minute or so to appear.
Step 6
The Docker service is ready when a small exclamation point appears over the Docker icon:
Attention
It may be a few minutes before the Docker service is ready.
Step 7
A PowerShell script will automatically customize the lab environment, but you need to paste a long command into a PowerShell window to start that process.:
Details
-
Copy this entire command to your clipboard:
- Tip: move your mouse cursor over the command text and click the icon at the far right-hand side of the command block.
powershell Set-Executionpolicy -Scope CurrentUser -ExecutionPolicy UnRestricted -Force; Set-Location \Users\admin; Invoke-WebRequest -Uri 'https://devasc-netconf.s3-us-west-2.amazonaws.com/setup_lab.ps1' -OutFile 'setup_lab.ps1’; .\setup_lab.ps1
-
On the Windows desktop, click the PowerShell icon in the taskbar to open a new PowerShell window.
- Right-click in the PowerShell window to paste the command
- Press your Enter or Return key to run the command.
What to do if you see a 'Docker Desktop process is not running' error message:
-
From time to time, the Windows desktop in this lab takes a lengthy amount of time to successfully start the Docker Desktop process and, rarely, Windows will fail to start Docker Desktop. If Windows cannot start Docker Desktop, your first indication will be an error message when you run the PowerShell script that configures the lab.
Docker for Windows Process Status
-
As the PowerShell error message indicates, PowerShell will attempt to start or restart the Docker Desktop process. After a few seconds, the Docker Desktop application will open behind the PowerShell window, and you may bring it to the foreground to monitor the status.
-
A teal-colored icon in the lower-left corner of the Docker Desktop application indicates the Docker process is running and you should be able to re-run the PowerShell script to configure the lab environment. Sometimes, Windows takes 5-10 minutes to start the Docker process.
-
An orange-colored icon in the lower-left corner of the Docker Desktop application indicates the Docker process is not running and you have a couple of options:
- Wait for around 10 minutes to see if Windows can start the Docker process.
- Launch a new instance of the WWT Programmability Foundations On-Demand Lab.
Step 9
Within a few minutes, when the lab is ready to use, a Chrome browser will open a JupyterLab URL. Open the devasc-netconf-intro folder from the navigation pane:
Attention
A few minutes after the JupyterLab browser window opens, a second Chrome tab will open for YANG Suite.
- Switch back to the JupyterLab tab when this happens.
- The instructions in the JupyterLab Notebook will show you how to use YANG Suite.
Step 11
Open the file ncclient_with_output.ipynb and follow the step-by-step instructions in the main pane:
Lab Restart Instructions
The lab setup process creates two shortcuts on the Windows desktop, which will help you restore the lab environment in the event the JupyterLab or YANG Suite browser tabs close, Windows restarts, etc.
Notice
- The Restart Lab and YANG Suite shortcuts re-launch JupyterLab or YANG Suite, respectively (including the Chrome browser tabs), within a few seconds; much sooner than during the initial lab setup.
- Double-clicking these shortcuts will NOT cause you to lose any of your lab progress.