From 06965abe5ddbbad8d05787008120bc149d31ad79 Mon Sep 17 00:00:00 2001 From: Kekoa Kaaikala Date: Wed, 21 Sep 2022 22:17:32 +0000 Subject: [PATCH] Island: Remove networkmap.py --- monkey/monkey_island/cc/models/networkmap.py | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 monkey/monkey_island/cc/models/networkmap.py diff --git a/monkey/monkey_island/cc/models/networkmap.py b/monkey/monkey_island/cc/models/networkmap.py deleted file mode 100644 index 8a3816e1a..000000000 --- a/monkey/monkey_island/cc/models/networkmap.py +++ /dev/null @@ -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