blob: b733c23b1bc2bbe7e6951951389f500fe276ed9f [file] [log] [blame]
Thomas Vachuskaaf0ee532015-08-19 14:17:36 -07001#!/bin/bash
2# -----------------------------------------------------------------------------
3# Launches ONOS REST API docs GUI on the specified node.
4# -----------------------------------------------------------------------------
5
6host=${1:-$OCI}
7host=${host:-localhost}
8
Michele Santuari6362fb82016-04-13 16:18:34 -07009unamestr=`uname`
10if [[ "$unamestr" == 'Linux' ]]; then
11 xdg-open http://$host:8181/onos/v1/docs
12else
13 open http://$host:8181/onos/v1/docs
14fi