blob: adf84c14df59aaa881cdc1499b14cbf7df745926 [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
9nodes=$(env | sort | egrep "OC[0-9]+" | cut -d= -f2)
10
11for node in $nodes; do
12 printf "$node..."
13 onos-topo-cfg $node $1
14done
15printf "\n"