Island: Remove networkmap.py

This commit is contained in:
Kekoa Kaaikala 2022-09-21 22:17:32 +00:00
parent bba6386efa
commit 06965abe5d
1 changed files with 0 additions and 19 deletions

View File

@ -1,19 +0,0 @@
from dataclasses import dataclass
from typing import Mapping, Sequence
from monkey_island.cc.models import Machine
@dataclass
class Arc:
dst_machine: Machine # noqa: F821
status: str
# This is the most concise way to represent a graph:
# Machine id as key, Arch list as a value
# Not sure how compatible this will be with ORM objects though,
# might require more complex casting logic
@dataclass
class NetworkMap:
nodes: Mapping[str, Sequence[Arc]] # noqa: F821