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
165fa8ea
Commit
165fa8ea
authored
Aug 21, 2024
by
Hejing Li
Browse files
add system and simulator mappings to experiment
parent
8f254b47
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
experiments/simbricks/orchestration/experiments.py
experiments/simbricks/orchestration/experiments.py
+5
-0
No files found.
experiments/simbricks/orchestration/experiments.py
View file @
165fa8ea
...
@@ -24,6 +24,8 @@ import itertools
...
@@ -24,6 +24,8 @@ import itertools
import
typing
as
tp
import
typing
as
tp
from
simbricks.orchestration
import
simulators
from
simbricks.orchestration
import
simulators
import
simbricks.orchestration.simulation
as
simulation
import
simbricks.orchestration.system
as
system
from
simbricks.orchestration.proxy
import
NetProxyConnecter
,
NetProxyListener
from
simbricks.orchestration.proxy
import
NetProxyConnecter
,
NetProxyListener
from
simbricks.orchestration.simulators
import
(
from
simbricks.orchestration.simulators
import
(
HostSim
,
I40eMultiNIC
,
NetSim
,
NICSim
,
PCIDevSim
,
Simulator
HostSim
,
I40eMultiNIC
,
NetSim
,
NICSim
,
PCIDevSim
,
Simulator
...
@@ -69,6 +71,9 @@ class Experiment(object):
...
@@ -69,6 +71,9 @@ class Experiment(object):
"""The network simulators to run."""
"""The network simulators to run."""
self
.
metadata
:
tp
.
Dict
[
str
,
tp
.
Any
]
=
{}
self
.
metadata
:
tp
.
Dict
[
str
,
tp
.
Any
]
=
{}
self
.
sys_sim_map
:
tp
.
Dict
[
system
.
Component
,
simulation
.
Simulator
]
=
{}
"""System component and its simulator pairs"""
@
property
@
property
def
nics
(
self
):
def
nics
(
self
):
return
filter
(
lambda
pcidev
:
pcidev
.
is_nic
(),
self
.
pcidevs
)
return
filter
(
lambda
pcidev
:
pcidev
.
is_nic
(),
self
.
pcidevs
)
...
...
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