09-06-2017 06:39 PM
We announced YDK-Py 0.6.0 a month ago. You can now give it a try using the Vagrant sandbox available in the ydk-py-samples repo. What exactly is installed?
vagrant@ydk-py:~$ pip list | grep ydk
ydk 0.6.0
ydk-models-cisco-ios-xe 16.6.1
ydk-models-cisco-ios-xr 6.2.2
ydk-models-ietf 0.1.3
ydk-models-openconfig 0.1.3
vagrant@ydk-py:~$
This is the 12th release of YDK that we've made available through the Vagrant sandbox. See the README in the ydk-py-samples repo for some basic instructions on how to instantiate the sandbox and use it to run the hundreds of Cisco IOS XR, OpenConfig and IETF sample apps.
Enjoy!
10-24-2017 12:01 PM
Hi Santiago,
How can I get this vagrant sandbox from repository? Thanks in advance.
10-24-2017 01:26 PM
Here's an example:
$ git clone https://github.com/CiscoDevNet/ydk-py-samples.git
Cloning into 'ydk-py-samples'...
remote: Counting objects: 6418, done.
remote: Total 6418 (delta 0), reused 0 (delta 0), pack-reused 6418
Receiving objects: 100% (6418/6418), 920.08 KiB | 729.00 KiB/s, done.
Resolving deltas: 100% (4319/4319), done.
Checking connectivity... done.
$ cd ydk-py-samples/
$
$ vagrant box update
==> ydk-py-ubuntu: Checking for updates to 'ydk-py-ubuntu'
ydk-py-ubuntu: Latest installed version: 0.6.0
ydk-py-ubuntu: Version constraints:
ydk-py-ubuntu: Provider: virtualbox
==> ydk-py-ubuntu: Updating 'ydk-py-ubuntu' with provider 'virtualbox' from version
==> ydk-py-ubuntu: '0.6.0' to '0.6.1'...
==> ydk-py-ubuntu: Loading metadata for box 'http://ydk.cisco.com/vagrant/ydk-py-ubuntu/'
==> ydk-py-ubuntu: Adding box 'ydk-py-ubuntu' (v0.6.1) for provider: virtualbox
ydk-py-ubuntu: Downloading: http://ydk.cisco.com/vagrant/ydk-py-ubuntu/boxes/ydk-py-0.6.1-ubuntu.box
ydk-py-ubuntu: Calculating and comparing box checksum...
==> ydk-py-ubuntu: Successfully added box 'ydk-py-ubuntu' (v0.6.1) for 'virtualbox'!
$
$ vagrant up
Bringing machine 'ydk-py-ubuntu' up with 'virtualbox' provider...
==> ydk-py-ubuntu: Importing base box 'ydk-py-ubuntu'...
==> ydk-py-ubuntu: Matching MAC address for NAT networking...
==> ydk-py-ubuntu: Checking if box 'ydk-py-ubuntu' is up to date...
==> ydk-py-ubuntu: Setting the name of the VM: ydk-py-samples_ydk-py-ubuntu_1508875336037_56467
==> ydk-py-ubuntu: Clearing any previously set network interfaces...
==> ydk-py-ubuntu: Preparing network interfaces based on configuration...
ydk-py-ubuntu: Adapter 1: nat
==> ydk-py-ubuntu: Forwarding ports...
ydk-py-ubuntu: 22 (guest) => 2222 (host) (adapter 1)
==> ydk-py-ubuntu: Booting VM...
==> ydk-py-ubuntu: Waiting for machine to boot. This may take a few minutes...
ydk-py-ubuntu: SSH address: 127.0.0.1:2222
ydk-py-ubuntu: SSH username: vagrant
ydk-py-ubuntu: SSH auth method: private key
ydk-py-ubuntu:
ydk-py-ubuntu: Vagrant insecure key detected. Vagrant will automatically replace
ydk-py-ubuntu: this with a newly generated keypair for better security.
ydk-py-ubuntu:
ydk-py-ubuntu: Inserting generated public key within guest...
ydk-py-ubuntu: Removing insecure key from the guest if it's present...
ydk-py-ubuntu: Key inserted! Disconnecting and reconnecting using new SSH key...
==> ydk-py-ubuntu: Machine booted and ready!
==> ydk-py-ubuntu: Checking for guest additions in VM...
==> ydk-py-ubuntu: Mounting shared folders...
ydk-py-ubuntu: /vagrant => /home/saalvare/src/github.com/111pontes/ydk-py-samples
ydk-py-ubuntu: /home/vagrant/samples => /home/saalvare/src/github.com/111pontes/ydk-py-samples/samples
ydk-py-ubuntu: /home/vagrant/projects => /home/saalvare/src/github.com/111pontes/ydk-py-samples/projects
$
$ vagrant ssh
Welcome to Cisco YDK-Py sandbox (Ubuntu 16.04)
0 packages can be updated.
0 updates are security updates.
Last login: Tue Oct 24 12:26:52 2017
vagrant@ydk-py:~$
Note that the instructions above include the upgrade of the sandbox to use the latest YDK (0.6.1). The README in the ydk-py-samples repo also provide some guidelines on how to use the sandbox. HTH.
10-24-2017 01:45 PM
Thanks a lot. I´ll give it a try !!!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide