alshabib | a551408 | 2017-03-31 11:08:27 -0500 | [diff] [blame^] | 1 | #!/bin/ash |
2 | |||||
3 | while true; do | ||||
4 | curl -H "Content-Type: application/json" -sSL --fail http://${ONOS_USER:-"karaf"}:${ONOS_PASSWORD:-"karaf"}@${ONOS_CONNECTION:-"localhost:8181"}/onos/v1/network/configuration -d @/data/onos-config.json | ||||
5 | if [ $? -eq 0 ]; then | ||||
6 | break | ||||
7 | fi | ||||
8 | sleep ${ONOS_SLEEP_DELAY:-30} | ||||
9 | done | ||||
10 | echo "Configuraton pushed to ${ONOS_CONNECTION:-'localhost:8181'} at $(date)" |