blob: 3dc5b0671c3238a6cc438e8382e7c1623dd47b1d [file] [log] [blame]
alshabiba5514082017-03-31 11:08:27 -05001#!/bin/ash
2
3while 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}
9done
10echo "Configuraton pushed to ${ONOS_CONNECTION:-'localhost:8181'} at $(date)"