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
f115d2ac
Commit
f115d2ac
authored
Sep 05, 2024
by
Hejing Li
Browse files
app.py: fix init arguments
parent
4a14b793
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
experiments/simbricks/orchestration/system/host/app.py
experiments/simbricks/orchestration/system/host/app.py
+8
-8
No files found.
experiments/simbricks/orchestration/system/host/app.py
View file @
f115d2ac
...
...
@@ -93,8 +93,8 @@ class BaseLinuxApplication(abc.ABC):
class
PingClient
(
BaseLinuxApplication
):
def
__init__
(
self
,
server_ip
:
str
=
'192.168.64.1'
)
->
None
:
super
().
__init__
()
def
__init__
(
self
,
h
:
'LinuxHost'
,
server_ip
:
str
=
'192.168.64.1'
)
->
None
:
super
().
__init__
(
h
)
self
.
server_ip
=
server_ip
def
run_cmds
(
self
,
env
:
expenv
.
ExpEnv
)
->
tp
.
List
[
str
]:
...
...
@@ -102,8 +102,8 @@ class PingClient(BaseLinuxApplication):
class
Sleep
(
BaseLinuxApplication
):
def
__init__
(
self
,
delay
:
float
=
10
)
->
None
:
super
().
__init__
()
def
__init__
(
self
,
h
:
'LinuxHost'
,
delay
:
float
=
10
)
->
None
:
super
().
__init__
(
h
)
self
.
delay
=
delay
def
run_cmds
(
self
,
env
:
expenv
.
ExpEnv
)
->
tp
.
List
[
str
]:
...
...
@@ -111,16 +111,16 @@ class Sleep(BaseLinuxApplication):
class
NetperfServer
(
BaseLinuxApplication
):
def
__init__
(
self
)
->
None
:
super
().
__init__
()
def
__init__
(
self
,
h
:
'LinuxHost'
)
->
None
:
super
().
__init__
(
h
)
def
run_cmds
(
self
,
env
:
expenv
.
ExpEnv
)
->
tp
.
List
[
str
]:
return
[
'netserver'
,
'sleep infinity'
]
class
NetperfClient
(
BaseLinuxApplication
):
def
__init__
(
self
,
server_ip
:
str
=
'192.168.64.1'
)
->
None
:
super
().
__init__
()
def
__init__
(
self
,
h
:
'LinuxHost'
,
server_ip
:
str
=
'192.168.64.1'
)
->
None
:
super
().
__init__
(
h
)
self
.
server_ip
=
server_ip
self
.
duration_tp
=
10
self
.
duration_lat
=
10
...
...
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