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