put back clobbered viz command
@@ -158,11 +158,13 @@ function check_args()
-v|viz|visualize)
if [ "$(docker ps -q --filter "label=vent.namespace=cyberreboot/crviz" --filter "label=vent.name=" | wc -l)" -eq 1 ]; then
port_map=$(docker port "$(docker ps -q --filter "label=vent.namespace=cyberreboot/crviz" --filter "label=vent.name=")" 5000/tcp)
+ api_port_map=$(docker port "$(docker ps -q --filter "label=vent.namespace=cyberreboot/poseidon" --filter "label=vent.name=api")" 8000/tcp)
port=$(echo "$port_map" | cut -d':' -f2)
+ api_port=$(echo "$api_port_map" | cut -d':' -f2)
default_iface=$(awk '$2 == 00000000 { print $1 }' /proc/net/route)
default_ip=$(ip addr show dev "$default_iface" | awk '$1 ~ /^inet/ { sub("/.*", "", $2); print $2 }' | head -1)
- echo "CRviz is connected to Poseidon and accessible here: http://$default_ip:$port/"
- echo "In the Dataset dropdown, select Poseidon Network."
+ echo "CRviz is connected to Poseidon and accessible here:"
+ echo "http://$default_ip:$port/?dataSourceName=Poseidon Network&dataSourceUrl=http://$default_ip:$api_port/v1/network"
else
echo "CRviz is not running."
fi
