Island: Improved naming of the network map interface

This commit is contained in:
vakarisz 2022-05-20 17:42:14 +03:00
parent ec4af2cc57
commit cfcb252df3
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -1,7 +1,7 @@
from abc import ABC
class INetMapRepository(ABC):
class INetworkMapRepository(ABC):
# TODO Define NetMap object
def get_map(self) -> NetMap: