"deployments/README.md" did not exist on "d4598239141eb0d22b91b64e119103b3c9f93dbf"
Newer
Older
#!/bin/bash
# turn on bash's job control
set -m
# Start the onos server and put it on the background
while true; do
response=$(wget --spider --server-response http://localhost:8181/onos/ui 2>&1)
status_codes=$(echo "$response" | awk '/HTTP\/1.1/{print $2}')
if echo "$status_codes" | grep -q "200"; then
echo "Starting the configuration"
break
fi
sleep 10
done
# Start the configuration
./bin/onos-app localhost activate org.onosproject.drivers
./bin/onos-app localhost activate org.onosproject.lldpprovider
./bin/onos-app localhost activate org.onosproject.openflow-base
./bin/onos-app localhost activate org.onosproject.optical-model
./bin/onos-app localhost install! vnets-app-1.0.oar
# now we bring the server into the foreground