Common: Use strings for NetworkService Enum values

This commit is contained in:
Mike Salvatore 2022-10-04 12:13:04 -04:00 committed by vakarisz
parent f6ed8a997c
commit eb3daf84f1
1 changed files with 9 additions and 2 deletions

View File

@ -1,7 +1,7 @@
from __future__ import annotations
from dataclasses import dataclass
from enum import Enum, auto
from enum import Enum
from ipaddress import IPv4Address
from typing import Dict, List, Optional, Union
from uuid import UUID
@ -29,7 +29,14 @@ JSONSerializable = Union[ # type: ignore[misc]
class NetworkService(Enum):
UNKNOWN = auto()
"""
An Enum representing network services
This Enum represents all network services that Infection Monkey supports. The value of each
member is the member's name in all lower-case characters.
"""
UNKNOWN = "unknown"
class NetworkPort(ConstrainedInt):