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
f43660c8
Commit
f43660c8
authored
Sep 23, 2024
by
Hejing Li
Browse files
net_base.py: fix switch dependency
parent
b4d9511a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
experiments/simbricks/orchestration/simulation/net/net_base.py
...iments/simbricks/orchestration/simulation/net/net_base.py
+5
-3
No files found.
experiments/simbricks/orchestration/simulation/net/net_base.py
View file @
f43660c8
...
@@ -43,9 +43,11 @@ class NetSim(sim_base.Simulator):
...
@@ -43,9 +43,11 @@ class NetSim(sim_base.Simulator):
def
dependencies
(
self
)
->
list
[
sim_base
.
Simulator
]:
def
dependencies
(
self
)
->
list
[
sim_base
.
Simulator
]:
# TODO
# TODO
deps
=
[]
deps
=
[]
for
s
in
self
.
switches
:
for
s
in
self
.
_components
:
for
n
in
s
.
netdevs
:
for
n
in
s
.
eth_ifs
:
deps
.
append
(
n
.
net
[
0
].
sim
)
peer_comp
=
n
.
find_peer
().
component
peer_sim
=
self
.
_simulation
.
find_sim
(
peer_comp
)
deps
.
append
(
peer_sim
)
return
deps
return
deps
def
init_network
(
self
)
->
None
:
def
init_network
(
self
)
->
None
:
...
...
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