Thomas Vachuska | 5bde31f | 2014-11-25 15:29:18 -0800 | [diff] [blame] | 1 | #!/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 Vachuska | f9879c5 | 2016-01-15 11:12:19 -0800 | [diff] [blame] | 9 | echo "This facility has been deprecated and will be removed in 1.6.0 (Goldeneye) release!!!" |
| 10 | |
Claudine Chiu | 45312d0 | 2016-06-15 13:17:12 +0000 | [diff] [blame] | 11 | nodes=$(env | sort | egrep "^OC[0-9]+" | cut -d= -f2) |
Thomas Vachuska | 5bde31f | 2014-11-25 15:29:18 -0800 | [diff] [blame] | 12 | |
| 13 | for node in $nodes; do |
| 14 | printf "$node..." |
| 15 | onos-topo-cfg $node $1 |
| 16 | done |
| 17 | printf "\n" |