blob: 2551f126daae82c919d31c0a583c9db6c640790f [file] [log] [blame]
Masayoshi Kobayashi57572b12013-03-13 22:27:50 +00001#! /bin/sh
2rm -f rest.json
3touch rest.json
Masayoshi Kobayashid27915b2013-03-16 00:59:05 +00004
Masayoshi Kobayashi22af5782013-03-21 23:44:45 +00005urls="http://localhost:8080/wm/core/topology/switches/all/json http://localhost:8080/wm/core/topology/links/json http://localhost:8080/wm/registry/controllers/json http://localhost:8080/wm/registry/switches/json"
Masayoshi Kobayashid27915b2013-03-16 00:59:05 +00006
7for url in $urls; do
8 echo "---REST CALL---" >> rest.json
9 echo "curl -s $url" >> rest.json
10 echo "---Result----" >> rest.json
11 curl -s $url | python -m json.tool >> rest.json
12done