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
38fc5ec5
Commit
38fc5ec5
authored
May 02, 2022
by
Antoine Kaufmann
Browse files
experiments: fixes for renamed proxy parameters
parent
3f12093b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
experiments/simbricks/proxy.py
experiments/simbricks/proxy.py
+4
-4
No files found.
experiments/simbricks/proxy.py
View file @
38fc5ec5
...
...
@@ -110,11 +110,11 @@ class NetProxyListener(NetProxy):
cmd
=
(
f
'-s
{
env
.
proxy_shm_path
(
self
)
}
'
f
'-S
{
self
.
shm_size
}
'
)
for
(
nic
,
local
)
in
self
.
nics
:
cmd
+=
'-
d
'
if
local
else
'-
n
'
cmd
+=
'-
C
'
if
local
else
'-
L
'
cmd
+=
env
.
nic_eth_path
(
nic
)
+
' '
for
((
net_c
,
net_l
),
local
)
in
self
.
n2ns
:
cmd
+=
'-
d
'
if
local
else
'-
n
'
cmd
+=
'-
C
'
if
local
else
'-
L
'
cmd
+=
env
.
n2n_eth_path
(
net_l
,
net_c
)
+
' '
cmd
+=
f
' 0.0.0.0
{
self
.
port
}
'
...
...
@@ -177,11 +177,11 @@ class NetProxyConnecter(NetProxy):
cmd
=
(
f
'-s
{
env
.
proxy_shm_path
(
self
)
}
'
f
'-S
{
self
.
shm_size
}
'
)
for
(
nic
,
local
)
in
self
.
nics
:
cmd
+=
'-
n
'
if
local
else
'-
d
'
cmd
+=
'-
L
'
if
local
else
'-
C
'
cmd
+=
env
.
nic_eth_path
(
nic
)
+
' '
for
((
net_c
,
net_l
),
local
)
in
self
.
n2ns
:
cmd
+=
'-
n
'
if
local
else
'-
d
'
cmd
+=
'-
L
'
if
local
else
'-
C
'
cmd
+=
env
.
n2n_eth_path
(
net_l
,
net_c
)
+
' '
cmd
+=
f
'
{
self
.
listener
.
ip
}
{
self
.
listener
.
port
}
'
...
...
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