Masayoshi Kobayashi | 57572b1 | 2013-03-13 22:27:50 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | rm -f rest.json |
| 3 | touch rest.json |
Masayoshi Kobayashi | d27915b | 2013-03-16 00:59:05 +0000 | [diff] [blame] | 4 | |
| 5 | urls="'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 | |
| 7 | for 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 |
| 12 | done |