mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-28 11:18:11 +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
|
adapter_number: int
|
||||||
port_name: Optional[str] = None
|
port_name: str
|
||||||
adapter_type: Optional[str] = None
|
adapter_type: Optional[str] = None
|
||||||
mac_address: Optional[str] = Field(None, regex="^([0-9a-fA-F]{2}[:]){5}([0-9a-fA-F]{2})$")
|
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