1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-25 16:28:11 +00:00

Require name for custom adapters. Fixes #2098

This commit is contained in:
grossmj 2022-08-28 17:33:33 +02:00
parent b58a54ae7c
commit d996a87246

View File

@ -43,7 +43,7 @@ class CustomAdapter(BaseModel):
"""
adapter_number: int
port_name: Optional[str] = None
port_name: str
adapter_type: Optional[str] = None
mac_address: Optional[str] = Field(None, regex="^([0-9a-fA-F]{2}[:]){5}([0-9a-fA-F]{2})$")