tom | 5ca3437 | 2014-09-19 17:43:41 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | #------------------------------------------------------------------------------- |
| 3 | # Remotely configures & starts ONOS for the first time. |
| 4 | #------------------------------------------------------------------------------- |
| 5 | |
| 6 | [ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1 |
| 7 | . $ONOS_ROOT/tools/build/envDefaults |
| 8 | |
| 9 | remote=$ONOS_USER@${1:-$OCI} |
| 10 | |
| 11 | LOG=$ONOS_INSTALL_DIR/config.log |
| 12 | onos=$ONOS_INSTALL_DIR/bin/onos |
| 13 | |
| 14 | ssh $remote " |
tom | 5ca3437 | 2014-09-19 17:43:41 -0700 | [diff] [blame] | 15 | # Wait until we reach the run-level 100 |
| 16 | echo 'Waiting for cluster bootstrap...' |
| 17 | running="" |
| 18 | while [ -z \$running ]; do |
| 19 | $onos bundle:list 2>>$LOG | grep -q 'START LEVEL 100' && running=1 || sleep 2 |
| 20 | done |
| 21 | |
tom | 0eaa97f | 2014-09-22 16:13:06 -0700 | [diff] [blame] | 22 | echo 'Installing ONOS bundles...' |
| 23 | $onos cluster:feature-install default onos-api 1>>$LOG 2>&1 |
| 24 | $onos cluster:feature-install default onos-core 1>>$LOG 2>&1 |
| 25 | $onos cluster:feature-install default onos-openflow 1>>$LOG 2>&1 |
| 26 | $onos cluster:feature-install default onos-cli 1>>$LOG 2>&1 |
| 27 | # $onos cluster:feature-install default onos-gui 1>>$LOG 2>&1 |
| 28 | # $onos cluster:feature-install default onos-rest 1>>$LOG 2>&1 |
| 29 | $onos cluster:feature-install default onos-app-tvue 1>>$LOG 2>&1 |
| 30 | $onos cluster:feature-install default onos-app-fwd 1>>$LOG 2>&1 |
tom | 5ca3437 | 2014-09-19 17:43:41 -0700 | [diff] [blame] | 31 | " |