forked from p15670423/monkey
Island: Improved naming of the network map interface
This commit is contained in:
parent
ec4af2cc57
commit
cfcb252df3
|
@ -7,11 +7,11 @@ from typing import Mapping, Sequence
|
||||||
# Not sure how compatible this will be with ORM objects though,
|
# Not sure how compatible this will be with ORM objects though,
|
||||||
# might require more complex casting logic
|
# might require more complex casting logic
|
||||||
@dataclass
|
@dataclass
|
||||||
class Netmap:
|
class NetworkMap:
|
||||||
nodes: Mapping[str, Sequence[Arch]]
|
nodes: Mapping[str, Sequence[Arc]]
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class Arch:
|
class Arc:
|
||||||
dst_machine: Machine
|
dst_machine: Machine
|
||||||
status: str
|
status: str
|
|
@ -1,7 +1,7 @@
|
||||||
from abc import ABC
|
from abc import ABC
|
||||||
|
|
||||||
|
|
||||||
class INetMapRepository(ABC):
|
class INetworkMapRepository(ABC):
|
||||||
|
|
||||||
# TODO Define NetMap object
|
# TODO Define NetMap object
|
||||||
def get_map(self) -> NetMap:
|
def get_map(self) -> NetMap:
|
Loading…
Reference in New Issue