mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-10-01 00:02:34 +03:00
fix(typing): resolve mypy errors in schemas.compute.dynamips_nodes
This commit is contained in:
parent
094fcf2747
commit
672ef2e3ce
@ -124,7 +124,6 @@ class DynamipsBase(BaseModel):
|
|||||||
node_id: Optional[UUID] = None
|
node_id: Optional[UUID] = None
|
||||||
name: Optional[str] = None
|
name: Optional[str] = None
|
||||||
dynamips_id: Optional[int] = Field(None, description="Dynamips internal ID")
|
dynamips_id: Optional[int] = Field(None, description="Dynamips internal ID")
|
||||||
platform: Optional[DynamipsPlatform] = Field(None, description="Cisco router platform")
|
|
||||||
ram: Optional[int] = Field(None, gt=0, description="Amount of RAM in MB")
|
ram: Optional[int] = Field(None, gt=0, description="Amount of RAM in MB")
|
||||||
nvram: Optional[int] = Field(None, gt=0, description="Amount of NVRAM in KB")
|
nvram: Optional[int] = Field(None, gt=0, description="Amount of NVRAM in KB")
|
||||||
image: Optional[str] = Field(None, description="Path to the IOS image")
|
image: Optional[str] = Field(None, description="Path to the IOS image")
|
||||||
@ -185,11 +184,12 @@ class DynamipsUpdate(DynamipsBase):
|
|||||||
Properties to update a Dynamips node.
|
Properties to update a Dynamips node.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
pass
|
platform: Optional[DynamipsPlatform] = Field(None, description="Cisco router platform")
|
||||||
|
|
||||||
|
|
||||||
class Dynamips(DynamipsBase):
|
class Dynamips(DynamipsBase):
|
||||||
name: str
|
name: str
|
||||||
|
platform: Optional[DynamipsPlatform] = Field(None, description="Cisco router platform")
|
||||||
node_id: UUID
|
node_id: UUID
|
||||||
project_id: UUID
|
project_id: UUID
|
||||||
dynamips_id: int
|
dynamips_id: int
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user