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
be8fda17
Unverified
Commit
be8fda17
authored
Dec 11, 2024
by
Antoine Kaufmann
Browse files
symphony/orchestration: helper connect methods for hosts & switches
parent
0afce61c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
symphony/orchestration/simbricks/orchestration/system/eth.py
symphony/orchestration/simbricks/orchestration/system/eth.py
+5
-0
symphony/orchestration/simbricks/orchestration/system/host/base.py
...orchestration/simbricks/orchestration/system/host/base.py
+5
-0
No files found.
symphony/orchestration/simbricks/orchestration/system/eth.py
View file @
be8fda17
...
...
@@ -91,6 +91,11 @@ class BaseEthNetComponent(base.Component):
def
fromJSON
(
cls
,
system
:
base
.
System
,
json_obj
:
dict
)
->
BaseEthNetComponent
:
return
super
().
fromJSON
(
system
,
json_obj
)
def
connect_eth_peer_if
(
self
,
peer_i
:
EthInterface
)
->
EthChannel
:
i
=
EthInterface
(
self
)
self
.
add_if
(
i
)
return
EthChannel
(
peer_i
,
i
)
class
EthWire
(
BaseEthNetComponent
):
def
__init__
(
self
,
s
:
base
.
System
)
->
None
:
...
...
symphony/orchestration/simbricks/orchestration/system/host/base.py
View file @
be8fda17
...
...
@@ -70,6 +70,11 @@ class Host(base.Component):
return
instance
def
connect_pcie_dev
(
self
,
dev
:
pcie
.
PCIeSimpleDevice
):
pcie_if
=
pcie
.
PCIeHostInterface
(
self
)
self
.
add_if
(
pcie_if
)
pcichannel0
=
pcie
.
PCIeChannel
(
pcie_if
,
dev
.
_pci_if
)
class
FullSystemHost
(
Host
):
def
__init__
(
self
,
s
:
base
.
System
)
->
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