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
94fd0178
Unverified
Commit
94fd0178
authored
Jan 14, 2025
by
Marvin Meiers
Browse files
symphony/orchestration: fix ns-3 parameters file path for NS3Net
parent
ac10897c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
symphony/orchestration/simbricks/orchestration/simulation/net/net_base.py
...ration/simbricks/orchestration/simulation/net/net_base.py
+4
-1
No files found.
symphony/orchestration/simbricks/orchestration/simulation/net/net_base.py
View file @
94fd0178
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
from
__future__
import
annotations
from
__future__
import
annotations
import
pathlib
from
simbricks.orchestration
import
system
from
simbricks.orchestration
import
system
from
simbricks.orchestration.system
import
base
as
sys_base
from
simbricks.orchestration.system
import
base
as
sys_base
from
simbricks.orchestration.system
import
eth
as
sys_eth
from
simbricks.orchestration.system
import
eth
as
sys_eth
...
@@ -484,7 +485,9 @@ class NS3Net(SimpleNS3Sim):
...
@@ -484,7 +485,9 @@ class NS3Net(SimpleNS3Sim):
if
self
.
use_file
:
if
self
.
use_file
:
# TODO: change this to a more sensible file path?
# TODO: change this to a more sensible file path?
file_path
=
inst
.
_join_paths
(
inst
.
out_base_dir
(),
f
"
{
self
.
name
}
_params"
,
False
)
sim_out
=
inst
.
get_simmulator_output_dir
(
self
)
pathlib
.
Path
(
sim_out
).
mkdir
(
parents
=
True
,
exist_ok
=
True
)
file_path
=
inst
.
_join_paths
(
sim_out
,
f
"
{
self
.
name
}
_params"
)
with
open
(
file_path
,
'w'
,
encoding
=
"utf-8"
)
as
f
:
with
open
(
file_path
,
'w'
,
encoding
=
"utf-8"
)
as
f
:
f
.
write
(
params_str
)
f
.
write
(
params_str
)
cmd
+=
f
"--ConfigFile=
{
file_path
}
"
cmd
+=
f
"--ConfigFile=
{
file_path
}
"
...
...
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