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
a91fd59c
Commit
a91fd59c
authored
Feb 15, 2024
by
Marvin Meiers
Committed by
Antoine Kaufmann
May 08, 2024
Browse files
experiments: use exception instead of sys.exit in NS3E2ENet
parent
c901fef6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
experiments/simbricks/orchestration/simulators.py
experiments/simbricks/orchestration/simulators.py
+3
-3
No files found.
experiments/simbricks/orchestration/simulators.py
View file @
a91fd59c
...
...
@@ -24,7 +24,6 @@
from
__future__
import
annotations
import
math
import
sys
import
typing
as
tp
from
simbricks.orchestration.experiment.experiment_environment
import
ExpEnv
...
...
@@ -930,8 +929,9 @@ class NS3E2ENet(NetSim):
listen
:
bool
=
False
)
->
None
:
if
e2e_sim
.
simbricks_component
is
None
:
print
(
'E2E Simbricks adapter does not contain a simulator'
)
sys
.
exit
(
1
)
raise
RuntimeError
(
'E2E Simbricks adapter does not contain a simulator'
)
if
e2e_sim
.
adapter_type
==
e2e
.
SimbricksAdapterType
.
NIC
:
e2e_sim
.
unix_socket
=
env
.
nic_eth_path
(
e2e_sim
.
simbricks_component
)
elif
e2e_sim
.
adapter_type
==
e2e
.
SimbricksAdapterType
.
NETWORK
:
...
...
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