mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 17:28:08 +00:00
Require name for custom adapters. Fixes #2098
This commit is contained in:
parent
b58a54ae7c
commit
d996a87246
@ -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})$")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user