From d996a87246ef1f2431cbbb7ba0ef2f5c94979f03 Mon Sep 17 00:00:00 2001 From: grossmj Date: Sun, 28 Aug 2022 17:33:33 +0200 Subject: [PATCH] Require name for custom adapters. Fixes #2098 --- gns3server/schemas/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/schemas/common.py b/gns3server/schemas/common.py index fbbb9b9b..ad6d6866 100644 --- a/gns3server/schemas/common.py +++ b/gns3server/schemas/common.py @@ -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})$")