blob: 0bf9beff4ba385fffc3ce71bddd01b7561830acd [file] [log] [blame]
Thomas Vachuska9ed335b2015-04-14 12:07:47 -07001#!/bin/bash
2# -----------------------------------------------------------------------------
3# Tool to upload GUI sprites definitions using GUI REST API.
4# -----------------------------------------------------------------------------
5
6node=${1}
7sprites=${2}
8
9export URL=http://$node:8181/onos/ui/rs/topology/sprites
10export HDR="-HContent-Type:application/json"
11
12curl --fail -sS -X POST $HDR $URL --data @$sprites