Thomas Vachuska | af0ee53 | 2015-08-19 14:17:36 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # ----------------------------------------------------------------------------- |
| 3 | # Launches ONOS REST API docs GUI on the specified node. |
| 4 | # ----------------------------------------------------------------------------- |
| 5 | |
| 6 | host=${1:-$OCI} |
| 7 | host=${host:-localhost} |
| 8 | |
Michele Santuari | 6362fb8 | 2016-04-13 16:18:34 -0700 | [diff] [blame] | 9 | unamestr=`uname` |
| 10 | if [[ "$unamestr" == 'Linux' ]]; then |
| 11 | xdg-open http://$host:8181/onos/v1/docs |
| 12 | else |
| 13 | open http://$host:8181/onos/v1/docs |
| 14 | fi |