summaryrefslogtreecommitdiffhomepage
path: root/tools/pyang_plugins
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-03-03 13:24:27 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-03-03 13:24:27 +0900
commitc61f97fcfec30025aa2ee29b966d31143483bccd (patch)
treef36af576764ff1bbebbe8d0925e1cadd8a360623 /tools/pyang_plugins
parent84a846719d75cad500ac83f34eda11035a332599 (diff)
tools: cosmetic fixes for README for yang plugin
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
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