summaryrefslogtreecommitdiffhomepage
path: root/tools/pyang_plugins
diff options
context:
space:
mode:
Diffstat (limited to 'tools/pyang_plugins')
-rw-r--r--tools/pyang_plugins/README.rst9
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/pyang_plugins/README.rst b/tools/pyang_plugins/README.rst
index 04d25614..7fcb3018 100644
--- a/tools/pyang_plugins/README.rst
+++ b/tools/pyang_plugins/README.rst
@@ -10,11 +10,12 @@ Currently, we made some modifications to the yang files:
How to use
==========
+::
+
$ git clone -b gobgp https://github.com/osrg/yang
$ YANG_DIR=`pwd`/yang/experimental/openconfig
$ cd $PYANG_INSTALL_DIR
- $ source ./env.sh
+ $ source ./env.sh
$ PYTHONPATH=. ./bin/pyang --plugindir $GOBGP_PATH/tools/pyang_plugins \
- -p $YANG_DIR/bgp \
- -p $YANG_DIR/policy \
- -f golang $YANG_DIR/bgp/bgp.yang |gofmt > $GOBGP_PATH/config/bgp_configs.go
+ -p $YANG_DIR/bgp -p $YANG_DIR/policy \
+ -f golang $YANG_DIR/bgp/bgp.yang |gofmt > $GOBGP_PATH/config/bgp_configs.go