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
05109d2e
Commit
05109d2e
authored
Sep 04, 2024
by
Hejing Li
Browse files
eth.py: add_ip
parent
47e21d7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
experiments/simbricks/orchestration/system/eth.py
experiments/simbricks/orchestration/system/eth.py
+3
-0
No files found.
experiments/simbricks/orchestration/system/eth.py
View file @
05109d2e
...
@@ -42,8 +42,11 @@ class EthChannel(base.Channel):
...
@@ -42,8 +42,11 @@ 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
.
ip
=
None
self
.
eth_if
=
EthInterface
(
self
)
self
.
eth_if
=
EthInterface
(
self
)
def
add_ipv4
(
self
,
ip
:
str
)
->
None
:
self
.
ip
=
ip
class
BaseEthNetComponent
(
base
.
Component
):
class
BaseEthNetComponent
(
base
.
Component
):
def
__init__
(
self
,
s
:
base
.
System
)
->
None
:
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