diff options
author | 2016-09-13 11:40:12 +0800 | |
---|---|---|
committer | 2016-09-13 11:41:53 +0800 | |
commit | b731e2f1dd0972409b136aebc7b463dd72c9cfad (patch) | |
tree | 5107d7d80c19ad8076c2c97c2b5ef8d1cf3ab903 /framework/src/onos/tools/test/bin/onos-show-cell | |
parent | ee93993458266114c29271a481ef9ce7ce621b2a (diff) |
ONOSFW-171
O/S-SFC-ONOS scenario documentation
Change-Id: I51ae1cf736ea24ab6680f8edca1b2bf5dd598365
Signed-off-by: CNlucius <lukai1@huawei.com>
Diffstat (limited to 'framework/src/onos/tools/test/bin/onos-show-cell')
-rwxr-xr-x | framework/src/onos/tools/test/bin/onos-show-cell | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/framework/src/onos/tools/test/bin/onos-show-cell b/framework/src/onos/tools/test/bin/onos-show-cell deleted file mode 100755 index f5c75726..00000000 --- a/framework/src/onos/tools/test/bin/onos-show-cell +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/bash -# ----------------------------------------------------------------------------- -# Print the configuration of an ONOS cell. -# ----------------------------------------------------------------------------- - -[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1 -. $ONOS_ROOT/tools/build/envDefaults - -function print_usage { - echo "Print the configuration of an ONOS cell." - echo "If no arguments are specified, it will print the configuration for the default" - echo "ONOS cell as specified in the 'ONOS_CELL' environmental variable." - echo - echo "Optional arguments:" - echo " [cell-name] Print the configuration of 'cell-name'" - echo " [-h | --help] Print this help" -} - -if [ "${1}" = "-h" -o "${1}" = "--help" ]; then - print_usage - exit 0 -fi - -if [ -n "${1}" ]; then - cell="${1}" -else - if [ -z "${ONOS_CELL}" ]; then - echo "Environmental variable 'ONOS_CELL' is not defined" - exit 1 - else - cell="${ONOS_CELL}" - fi -fi - -if [ ! -f $ONOS_ROOT/tools/test/cells/${cell} ]; then - echo "No such cell: ${cell}" - exit 1 -fi - -# Load the cell setup -. $ONOS_ROOT/tools/test/cells/${cell} - -echo "ONOS_CELL=${ONOS_CELL}" -echo "ONOS_NIC=${ONOS_NIC}" -# get number of OC variables -max=$( env | egrep 'OC[0-9]+' | wc -l ) -for n in $( seq 0 ${max} ); do - ocn="OC${n}" - if [ -n "${!ocn}" ]; then - echo "$ocn=${!ocn}" - fi -done -echo "OCN=${OCN}" -echo "OCT=${OCT}" -echo "OCI=${OCI}" -echo "ONOS_APPS=${ONOS_APPS}" -echo "ONOS_BOOT_FEATURES=${ONOS_BOOT_FEATURES}" |