From 84a846719d75cad500ac83f34eda11035a332599 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Tue, 3 Mar 2015 13:13:05 +0900 Subject: tools: add README for yang plugin also do some cleanups. Signed-off-by: FUJITA Tomonori --- tools/pyang_plugins/README.rst | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tools/pyang_plugins/README.rst (limited to 'tools/pyang_plugins/README.rst') diff --git a/tools/pyang_plugins/README.rst b/tools/pyang_plugins/README.rst new file mode 100644 index 00000000..04d25614 --- /dev/null +++ b/tools/pyang_plugins/README.rst @@ -0,0 +1,20 @@ +What's this ? +============= +This is a pyang plugin to generate config/bgp_configs.go from +openconfig yang files. + +Currently, we made some modifications to the yang files: + + https://github.com/osrg/yang/tree/gobgp + + +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 + $ 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 -- cgit v1.2.3