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
401f3c30
Commit
401f3c30
authored
Jan 15, 2024
by
Antoine Kaufmann
Committed by
Hejing Li
Feb 01, 2024
Browse files
experiments: add support for simbricks hosts in e2e dc topology
parent
e10352ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
experiments/simbricks/orchestration/e2e_topologies.py
experiments/simbricks/orchestration/e2e_topologies.py
+20
-0
No files found.
experiments/simbricks/orchestration/e2e_topologies.py
View file @
401f3c30
...
...
@@ -107,6 +107,7 @@ class DCFatTree(E2ETopology):
'agg_link_delay'
:
'1us'
,
'agg_link_rate'
:
'10Gbps'
,
'agg_link_queue'
:
'512KB'
,
'sbhost_eth_latency'
:
'500ns'
,
}
for
(
n
,
v
)
in
kwargs
.
items
():
self
.
params
[
n
]
=
v
...
...
@@ -123,6 +124,8 @@ class DCFatTree(E2ETopology):
self
.
hosts
=
[]
self
.
n_simbricks_host
=
0
bn
=
basename
# Create spine switches
...
...
@@ -224,6 +227,23 @@ class DCFatTree(E2ETopology):
raise
BufferError
(
'Network is full'
)
(
agg
,
rack
,
_
)
=
random
.
choice
(
rs
)
self
.
add_host
(
agg
,
rack
,
h
)
return
(
agg
,
rack
)
def
wrap_simbricks_host
(
self
,
nic
):
i
=
self
.
n_simbricks_host
self
.
n_simbricks_host
+=
1
host
=
e2e
.
E2ESimbricksHost
(
f
'_sbh-
{
i
}
-
{
nic
.
name
}
'
)
host
.
eth_latency
=
self
.
params
[
'sbhost_eth_latency'
]
host
.
simbricks_component
=
nic
return
host
def
add_simbricks_host
(
self
,
agg
,
rack
,
nic
):
self
.
add_host
(
agg
,
rack
,
self
.
wrap_simbricks_host
(
nic
))
def
add_simbricks_host_r
(
self
,
nic
):
return
self
.
add_host_r
(
self
.
wrap_simbricks_host
(
nic
))
def
add_contig_bg
(
topo
,
subnet
=
'10.42.0.0/16'
,
**
kwargs
):
params
=
{
...
...
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