From 5f874356b16b29070cde37968e1143a6ff129a82 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Wed, 7 Sep 2022 09:43:27 -0400 Subject: [PATCH] Island: Remove INetworkMapRepository Replaced by monkey_island.cc.models.Node and INodeRepository --- .../cc/repository/i_network_map_repository.py | 11 ----------- vulture_allowlist.py | 3 --- 2 files changed, 14 deletions(-) delete mode 100644 monkey/monkey_island/cc/repository/i_network_map_repository.py diff --git a/monkey/monkey_island/cc/repository/i_network_map_repository.py b/monkey/monkey_island/cc/repository/i_network_map_repository.py deleted file mode 100644 index 0b0b29847..000000000 --- a/monkey/monkey_island/cc/repository/i_network_map_repository.py +++ /dev/null @@ -1,11 +0,0 @@ -from abc import ABC - - -class INetworkMapRepository(ABC): - - # TODO Define NetMap object - def get_map(self) -> NetMap: # noqa: F821 - pass - - def save_netmap(self, netmap: NetMap): # noqa: F821 - pass diff --git a/vulture_allowlist.py b/vulture_allowlist.py index 265d675d7..fc9833a5d 100644 --- a/vulture_allowlist.py +++ b/vulture_allowlist.py @@ -18,7 +18,6 @@ from monkey_island.cc.repository.i_attack_repository import IAttackRepository from monkey_island.cc.repository.i_config_repository import IConfigRepository from monkey_island.cc.repository.i_log_repository import ILogRepository from monkey_island.cc.repository.i_machine_repository import IMachineRepository -from monkey_island.cc.repository.i_network_map_repository import INetworkMapRepository from monkey_island.cc.repository.i_report_repository import IReportRepository from monkey_island.cc.repository.i_simulation_repository import ISimulationRepository from monkey_island.cc.repository.i_telemetry_repository import ITelemetryRepository @@ -257,8 +256,6 @@ IMachineRepository.upsert_machine IMachineRepository.get_machine_by_id IMachineRepository.get_machine_by_hardware_id IMachineRepository.get_machines_by_ip -INetworkMapRepository.get_map -INetworkMapRepository.save_netmap INodeRepository INodeRepository.upsert_communication INodeRepository.communication_type