From c32013bf87131db4f1ba18cebb3b21e241bbb0e1 Mon Sep 17 00:00:00 2001 From: Ilija Lazoroski Date: Thu, 29 Sep 2022 18:34:01 +0200 Subject: [PATCH] Common: Add PortStatus enum --- monkey/common/__init__.py | 1 + monkey/common/port_status.py | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 monkey/common/port_status.py diff --git a/monkey/common/__init__.py b/monkey/common/__init__.py index 69190bce5..12e33e028 100644 --- a/monkey/common/__init__.py +++ b/monkey/common/__init__.py @@ -8,3 +8,4 @@ from . import types from . import base_models from .agent_registration_data import AgentRegistrationData from .agent_signals import AgentSignals +from .port_status import PortStatus diff --git a/monkey/common/port_status.py b/monkey/common/port_status.py new file mode 100644 index 000000000..8393e7a9a --- /dev/null +++ b/monkey/common/port_status.py @@ -0,0 +1,13 @@ +from enum import Enum + + +class PortStatus(Enum): + """ + An Enum representing the status of the port. + + This Enum represents the status of a network pork. The value of each + member is distincive and unique number. + """ + + OPEN = 1 + CLOSED = 2