One of the simplest ways you can get started with YDK is using the YDK-Py sandbox based on Vagrant. The sandbox provides an Ubuntu (16.04) virtual machine with YDK-Py pre-installed. The installation includes the latest release of YDK (0.5.1) and the latest versions of all model bundles (Cisco IOS XR, OpenConfig and IETF).
How do you use it?
- Install VirtualBox and Vagrant on your system (Linux, macOS or Windows)
- Clone (or download) the YDK-Py sample apps:
$ git clone firstname.lastname@example.org:CiscoDevNet/ydk-py-samples.git
- Bring your sandbox up:
$ vagrant up
- Connect to the sandbox using ssh:
$ vagrant ssh
- Verify the YDK installation on your sandbox:
vagrant@ydk-py:~$ pip list | grep ydk
ydk (0.5.1)ydk-models-cisco-ios-xr (6.1.1)
The main README file in the ydk-py-samples repository provides some additional details on how to manage your sandbox. The guide for getting started with Vagrant also provides more details.
Try it out!
Please sign in to leave a comment.