summaryrefslogtreecommitdiffhomepage
path: root/tools/pyang_plugins
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-07-06 22:28:11 +0900
committerISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-07-06 22:28:11 +0900
commite535f1335b770c140d4edd9df288f5ff47e0639f (patch)
treed1454ad978330ae014bce10cb17dceb146ed3e58 /tools/pyang_plugins
parent84f1e917e78be7686e676f1d6cc0810ee499e561 (diff)
tools/pyang_plugins: update README.rst
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'tools/pyang_plugins')
-rw-r--r--tools/pyang_plugins/README.rst11
1 files changed, 7 insertions, 4 deletions
diff --git a/tools/pyang_plugins/README.rst b/tools/pyang_plugins/README.rst
index 4d45904e..dc4e2a0e 100644
--- a/tools/pyang_plugins/README.rst
+++ b/tools/pyang_plugins/README.rst
@@ -13,10 +13,13 @@ How to use
::
$ git clone -b gobgp https://github.com/osrg/yang
- $ YANG_DIR=`pwd`/yang/experimental/openconfig
+ $ YANG_DIR=`pwd`/yang
$ cd $PYANG_INSTALL_DIR
$ 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 \
- --augment $YANG_DIR/bgp/bgp-policy.yang |gofmt > $GOBGP_PATH/config/bgp_configs.go
+ -p $YANG_DIR/standard/ietf/RFC \
+ -p $YANG_DIR/experimental/openconfig/bgp \
+ -p $YANG_DIR/experimental/openconfig/policy \
+ -f golang $YANG_DIR/experimental/openconfig/bgp/bgp.yang \
+ --augment $YANG_DIR/experimental/openconfig/bgp/bgp-policy.yang \
+ | gofmt > $GOBGP_PATH/config/bgp_configs.go