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 git@github.com: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)
ydk-models-ietf (0.1.1)
ydk-models-openconfig (0.1.1)
vagrant@ydk-py:~$
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!
Comments
0 comments
Please sign in to leave a comment.