blob: adf84c14df59aaa881cdc1499b14cbf7df745926 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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"
|