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

Make port name for custom adapters optional. Fixes https://github.com/GNS3/gns3-web-ui/issues/1430

This commit is contained in:
grossmj 2023-02-01 16:19:39 +08:00
parent ab1f9a4385
commit 9c158848bd

View File

@ -43,7 +43,7 @@ class CustomAdapter(BaseModel):
"""
adapter_number: int
port_name: str
port_name: 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})$")