mirror of
https://github.com/weaveworks/scope.git
synced 2026-08-18 03:46:45 +00:00
Split the internet node for incoming vs outgoing connections.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user