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
7536b0c8
Commit
7536b0c8
authored
Jul 25, 2021
by
Jialin Li
Browse files
tofino: add Tofino network to simulator script
parent
c17fd5db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
experiments/simbricks/simulators.py
experiments/simbricks/simulators.py
+7
-0
No files found.
experiments/simbricks/simulators.py
View file @
7536b0c8
...
@@ -264,6 +264,13 @@ class SwitchNet(NetSim):
...
@@ -264,6 +264,13 @@ class SwitchNet(NetSim):
cmd
+=
' -s '
+
env
.
nic_eth_path
(
n
)
cmd
+=
' -s '
+
env
.
nic_eth_path
(
n
)
return
cmd
return
cmd
class
TofinoNet
(
NetSim
):
def
run_cmd
(
self
,
env
):
cmd
=
env
.
repodir
+
'/sims/tofino/tofino'
cmd
+=
f
' -m
{
self
.
sync_mode
}
-S
{
self
.
sync_period
}
-E
{
self
.
eth_latency
}
'
for
n
in
self
.
nics
:
cmd
+=
' -s '
+
env
.
nic_eth_path
(
n
)
return
cmd
class
NS3DumbbellNet
(
NetSim
):
class
NS3DumbbellNet
(
NetSim
):
def
run_cmd
(
self
,
env
):
def
run_cmd
(
self
,
env
):
...
...
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