From 010ab4738519f5f9f567af11c70343eb86aad320 Mon Sep 17 00:00:00 2001 From: Ashish Date: Thu, 12 May 2016 08:32:08 +0530 Subject: [PATCH] Installs pyangbind into the Robot test VM image. Pyangbind generates high level python class bindings for the given yang models. This commit installs the plugin. This plugin can be used to generate python bindings which uses the libraries from the plugin. We can use these bindings to generate the desired JSON with default or variable data. Change-Id: I2f980264ef42495abcb9592e57e6b381f38266bb Signed-off-by: Ashish --- tools/tools_vm/scripts/fedora.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/tools_vm/scripts/fedora.sh b/tools/tools_vm/scripts/fedora.sh index 348bd7bbf8..3abba25013 100755 --- a/tools/tools_vm/scripts/fedora.sh +++ b/tools/tools_vm/scripts/fedora.sh @@ -95,6 +95,12 @@ cd $HOME && \ python setup.py build && \ su -c "python setup.py install" + +# Install Pyangbind, a tool to generate python bindings which can be further used to +# generate JSON dict for yang files. +echo "Installing Pyangbind plugin" +su -c "pip install pyangbind" + # ---------------------------- # Add aliases to run the tools # ---------------------------- -- 2.36.6