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
501c1a5d
Commit
501c1a5d
authored
Apr 30, 2021
by
Hejing Li
Browse files
nodeconfig: remove some unused
parent
5ac5a521
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
experiments/simbricks/nodeconfig.py
experiments/simbricks/nodeconfig.py
+12
-10
No files found.
experiments/simbricks/nodeconfig.py
View file @
501c1a5d
...
...
@@ -326,18 +326,20 @@ class IperfTCPClient(AppConfig):
class
IperfUDPClient
(
AppConfig
):
server_ip
=
'10.0.0.1'
rate
=
'150m'
def
run_cmds
(
self
,
node
):
return
[
'sleep 1'
,
'iperf -c '
+
self
.
server_ip
+
' -i 1 -u -b '
+
self
.
rate
,
'sleep 20'
]
is_last
=
False
class
IperfUDPClientLast
(
AppConfig
):
server_ip
=
'10.0.0.1'
rate
=
'150m'
def
run_cmds
(
self
,
node
):
return
[
'sleep 1'
,
'iperf -c '
+
self
.
server_ip
+
' -i 1 -u -b '
+
self
.
rate
,
'sleep 0.5'
]
cmds
=
[
'sleep 1'
,
'iperf -c '
+
self
.
server_ip
+
' -i 1 -u -b '
+
self
.
rate
]
if
self
.
is_last
:
cmds
.
append
(
'sleep 0.5'
)
else
:
cmds
.
append
(
'sleep infinity'
)
return
cmds
class
IperfUDPClientSleep
(
AppConfig
):
server_ip
=
'10.0.0.1'
...
...
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