tests: wait for READY group routes before measuring NAT
This commit is contained in:
1 parent
110dd82932
commit
3cb971fcba
2 files changed
+10
-1
No files matched your search
@@ -224,6 +224,13 @@ static void statistics(struct lab *lab, uint64_t id, int loads) {
|
||||
if (connection && connection->links_up && !connection->close_requested && connection->state != 2)
|
||||
printf("%s\"%" PRIu64 "\"", separator++ ? "," : "", connection->peer_node_id);
|
||||
}
|
||||
printf("],\"group_ready\":["); separator = 0;
|
||||
struct TOPO_GROUP *nat_group = topo_groups_find(lab->inst->topo_groups, TOPO_GROUP_UTUN);
|
||||
for (struct ll_entry *entry = nat_group ? nat_group->nodes->head : NULL; entry; entry = entry->next) {
|
||||
uint64_t peer = ((struct TOPO_GROUP_NODE *)entry)->node_id;
|
||||
if (peer != lab->inst->node_id && topo_group_peer_ready(nat_group, peer))
|
||||
printf("%s\"%" PRIu64 "\"", separator++ ? "," : "", peer);
|
||||
}
|
||||
printf("],\"streams\":["); separator = 0;
|
||||
for (unsigned i = 0; i < LAB_STREAMS; i++) {
|
||||
struct lab_stream *stream = &lab->streams[i];
|
||||
|
||||
Reference in new issue
Block a user