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
0747f76a
Commit
0747f76a
authored
Jan 23, 2022
by
Hejing Li
Browse files
add omnet simulator
parent
34d1e582
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
experiments/simbricks/simulators.py
experiments/simbricks/simulators.py
+14
-0
No files found.
experiments/simbricks/simulators.py
View file @
0747f76a
...
...
@@ -518,6 +518,20 @@ class NS3SequencerNet(NetSim):
cmd
=
env
.
repodir
+
'/sims/external/ns-3'
+
'/cosim-run.sh sequencer sequencer-single-switch-example '
+
ports
+
' '
+
self
.
opt
return
cmd
# fix temparal path
class
NS3BridgeNet
(
NetSim
):
def
__init__
(
self
):
super
().
__init__
()
def
run_cmd
(
self
,
env
):
#ports = ''
#for (_,n) in self.connect_sockets(env):
# ports += '--CosimPort=' + n + ' '
cmd
=
'opp_run -u Cmdenv -m -n /OS/endhost-networking/work/sim/hejing/omnetpp-5.7/samples/inet4/src:/OS/endhost-networking/work/sim/hejing/omnetpp-5.7/samples/inet4/examples/:/OS/endhost-networking/work/sim/hejing/omnetpp-5.7/samples/inet4/tutorials/:/OS/endhost-networking/work/sim/hejing/omnetpp-5.7/samples/inet4/showcases/ --image-path=/OS/endhost-networking/work/sim/hejing/omnetpp-5.7/samples/inet4/images -l /OS/endhost-networking/work/sim/hejing/omnetpp-5.7/samples/inet4/src/INET -f /OS/endhost-networking/work/sim/hejing/omnetpp-5.7/samples/inet4/examples/ethernet/simbricks/omnetpp.ini'
print
(
cmd
)
return
cmd
class
FEMUDev
(
PCIDevSim
):
def
__init__
(
self
):
...
...
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