blob: 3dc5b0671c3238a6cc438e8382e7c1623dd47b1d [file] [log] [blame]
#!/bin/ash
while true; do
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
if [ $? -eq 0 ]; then
break
fi
sleep ${ONOS_SLEEP_DELAY:-30}
done
echo "Configuraton pushed to ${ONOS_CONNECTION:-'localhost:8181'} at $(date)"