blob: 033dfbdaa16b11e47f5a20b33dac103885adaf0f [file] [log] [blame]
Thomas Vachuska5bde31f2014-11-25 15:29:18 -08001#!/bin/bash
2# -----------------------------------------------------------------------------
3# ONOS topology configuration uploader.
4# -----------------------------------------------------------------------------
5
6[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
7. $ONOS_ROOT/tools/build/envDefaults
8
Thomas Vachuskaf9879c52016-01-15 11:12:19 -08009echo "This facility has been deprecated and will be removed in 1.6.0 (Goldeneye) release!!!"
10
Thomas Vachuska5bde31f2014-11-25 15:29:18 -080011nodes=$(env | sort | egrep "OC[0-9]+" | cut -d= -f2)
12
13for node in $nodes; do
14 printf "$node..."
15 onos-topo-cfg $node $1
16done
17printf "\n"