Added a standalone utility to convert ONOS topology JSON config to OELinc JSON config.
Showing
1 changed file
with
12 additions
and
0 deletions
tools/test/bin/onos-oecfg
0 → 100755
| 1 | +#!/bin/bash | ||
| 2 | +# ----------------------------------------------------------------------------- | ||
| 3 | +# ONOS OE-Linc config generator. | ||
| 4 | +# ----------------------------------------------------------------------------- | ||
| 5 | + | ||
| 6 | +[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1 | ||
| 7 | +. $ONOS_ROOT/tools/build/envDefaults | ||
| 8 | + | ||
| 9 | +APP=onos-app-oecfg | ||
| 10 | +JAR=$M2_REPO/org/onlab/onos/$APP/$ONOS_POM_VERSION/$APP-$ONOS_POM_VERSION.jar | ||
| 11 | + | ||
| 12 | +java -jar $JAR < $1 | python -mjson.tool |
-
Please register or login to post a comment