Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
50ed11f7
Commit
50ed11f7
authored
Aug 06, 2021
by
Antoine Kaufmann
Browse files
experiments: wait till proxy sockets exist
(implement wait_proxy_sockets properly)
parent
816b1893
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
experiments/simbricks/experiments.py
experiments/simbricks/experiments.py
+14
-2
No files found.
experiments/simbricks/experiments.py
View file @
50ed11f7
...
...
@@ -378,8 +378,20 @@ class ExperimentDistributedRunner(ExperimentBaseRunner):
await
asyncio
.
sleep
(
10
)
async
def
wait_proxy_sockets
(
self
):
# TODO
pass
""" Make sure all sockets exist. """
paths
=
{}
for
proxy
in
itertools
.
chain
(
self
.
exp
.
proxies_connect
,
self
.
exp
.
proxies_listen
):
for
(
nic
,
local
)
in
proxy
.
nics
:
if
local
:
continue
exec
=
self
.
sim_executor
(
proxy
)
if
exec
not
in
paths
:
paths
[
exec
]
=
[]
paths
[
exec
].
append
(
self
.
env
.
nic_eth_path
(
nic
))
for
(
exec
,
paths
)
in
paths
.
items
():
await
exec
.
await_files
(
paths
,
verbose
=
self
.
verbose
)
async
def
before_nets
(
self
):
await
self
.
run_proxies_listeners
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment