diff options
Diffstat (limited to 'framework/src/onos/tools/test/bin/onos-topo-cfg-all')
-rwxr-xr-x | framework/src/onos/tools/test/bin/onos-topo-cfg-all | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/framework/src/onos/tools/test/bin/onos-topo-cfg-all b/framework/src/onos/tools/test/bin/onos-topo-cfg-all new file mode 100755 index 00000000..adf84c14 --- /dev/null +++ b/framework/src/onos/tools/test/bin/onos-topo-cfg-all @@ -0,0 +1,15 @@ +#!/bin/bash +# ----------------------------------------------------------------------------- +# ONOS topology configuration uploader. +# ----------------------------------------------------------------------------- + +[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1 +. $ONOS_ROOT/tools/build/envDefaults + +nodes=$(env | sort | egrep "OC[0-9]+" | cut -d= -f2) + +for node in $nodes; do + printf "$node..." + onos-topo-cfg $node $1 +done +printf "\n" |