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
47e21d7d
Commit
47e21d7d
authored
Sep 04, 2024
by
Hejing Li
Browse files
fix interface init
parent
e35edbd9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
experiments/simbricks/orchestration/system/eth.py
experiments/simbricks/orchestration/system/eth.py
+1
-1
experiments/simbricks/orchestration/system/pcie.py
experiments/simbricks/orchestration/system/pcie.py
+1
-1
No files found.
experiments/simbricks/orchestration/system/eth.py
View file @
47e21d7d
...
@@ -42,7 +42,7 @@ class EthChannel(base.Channel):
...
@@ -42,7 +42,7 @@ class EthChannel(base.Channel):
class
EthSimpleNIC
(
base
.
Component
):
class
EthSimpleNIC
(
base
.
Component
):
def
__init__
(
self
,
s
:
base
.
System
)
->
None
:
def
__init__
(
self
,
s
:
base
.
System
)
->
None
:
super
().
__init__
(
s
)
super
().
__init__
(
s
)
self
.
eth_if
=
EthInterface
()
self
.
eth_if
=
EthInterface
(
self
)
class
BaseEthNetComponent
(
base
.
Component
):
class
BaseEthNetComponent
(
base
.
Component
):
...
...
experiments/simbricks/orchestration/system/pcie.py
View file @
47e21d7d
...
@@ -56,7 +56,7 @@ class PCIeChannel(base.Channel):
...
@@ -56,7 +56,7 @@ class PCIeChannel(base.Channel):
class
PCIeSimpleDevice
(
base
.
Component
):
class
PCIeSimpleDevice
(
base
.
Component
):
def
__init__
(
self
,
s
:
base
.
System
):
def
__init__
(
self
,
s
:
base
.
System
):
super
().
__init__
(
s
)
super
().
__init__
(
s
)
self
.
pci_if
=
PCIeDeviceInterface
()
self
.
pci_if
=
PCIeDeviceInterface
(
self
)
def
interfaces
(
self
)
->
list
[
base
.
Interface
]:
def
interfaces
(
self
)
->
list
[
base
.
Interface
]:
return
[
self
.
pci_if
]
return
[
self
.
pci_if
]
\ No newline at end of file
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