blob: b26d6a826d61aa10a480425e0b0a54e7a94b01cc [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
Claudine Chiu45312d02016-06-15 13:17:12 +000011nodes=$(env | sort | egrep "^OC[0-9]+" | cut -d= -f2)
Thomas Vachuska5bde31f2014-11-25 15:29:18 -080012
13for node in $nodes; do
14 printf "$node..."
15 onos-topo-cfg $node $1
16done
17printf "\n"