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
a78b6f0f
"vscode:/vscode.git/clone" did not exist on "823da3187f25593275f437ec86624b42c8395fbc"
Commit
a78b6f0f
authored
Jul 11, 2024
by
Jialin Li
Committed by
Jonas Kaufmann
Jul 12, 2024
Browse files
pyexps/qemu_udp_single: add basic bmv2 switch
parent
e15769f9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
experiments/pyexps/qemu_udp_single.py
experiments/pyexps/qemu_udp_single.py
+3
-1
No files found.
experiments/pyexps/qemu_udp_single.py
View file @
a78b6f0f
...
...
@@ -34,7 +34,7 @@ from simbricks.orchestration.simulator_utils import create_basic_hosts
kinds_of_host
=
[
'qemu'
]
kinds_of_nic
=
[
'cv'
,
'cb'
,
'ib'
]
kinds_of_net
=
[
'wire'
,
'switch'
,
'dumbbell'
,
'bridge'
,
'tofino'
]
kinds_of_net
=
[
'wire'
,
'switch'
,
'dumbbell'
,
'bridge'
,
'tofino'
,
'bmv2'
]
kinds_of_app
=
[
'UDPs'
]
rate
=
'200m'
...
...
@@ -53,6 +53,8 @@ for n in kinds_of_net:
NetClass
=
sim
.
NS3BridgeNet
elif
n
==
'tofino'
:
NetClass
=
sim
.
TofinoNet
elif
n
==
'bmv2'
:
NetClass
=
sim
.
BMV2Net
else
:
raise
ValueError
(
f
'unknown network type
{
n
}
'
)
...
...
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