Split the internet node for incoming vs outgoing connections.

This commit is contained in:
Tom Wilkie
2016-03-01 14:11:47 +00:00
committed by Tom Wilkie
parent 67c15cefc0
commit bc48a48133
6 changed files with 70 additions and 59 deletions
+3 -3
View File
@@ -22,11 +22,11 @@ do_connections() {
}
do_connections&
wait_for_containers $HOST1 60 nginx "The Internet"
wait_for_containers $HOST1 60 nginx "Inbound"
has_container $HOST1 nginx
has_container $HOST1 "The Internet"
has_connection containers $HOST1 "The Internet" nginx
has_container $HOST1 "Inbound"
has_connection containers $HOST1 "Inbound" nginx
kill %do_connections
-1
View File
@@ -67,7 +67,6 @@ has_connection() {
local timeout="${5:-60}"
local from_id=$(node_id "${view}" "${host}" "${from}")
local to_id=$(node_id "${view}" "${host}" "${to}")
for i in $(seq $timeout); do
local nodes="$(curl -s http://$host:4040/api/topology/${view}?system=show)"
local edge=$(echo "$nodes" | jq -r ".nodes[\"$from_id\"].adjacency | contains([\"$to_id\"])" 2>/dev/null)