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,
|
||||
# might require more complex casting logic
|
||||
@dataclass
|
||||
class Netmap:
|
||||
nodes: Mapping[str, Sequence[Arch]]
|
||||
class NetworkMap:
|
||||
nodes: Mapping[str, Sequence[Arc]]
|
||||
|
||||
|
||||
@dataclass
|
||||
class Arch:
|
||||
class Arc:
|
||||
dst_machine: Machine
|
||||
status: str
|
|
@ -1,7 +1,7 @@
|
|||
from abc import ABC
|
||||
|
||||
|
||||
class INetMapRepository(ABC):
|
||||
class INetworkMapRepository(ABC):
|
||||
|
||||
# TODO Define NetMap object
|
||||
def get_map(self) -> NetMap:
|
Loading…
Reference in New Issue