blob: 241915a9adca55047821ce547864f93b61bc742b [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
5urls="'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'"
6
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