onos-topo-cfg-all 465 Bytes
#!/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"