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