mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-08-27 12:30:13 +03:00
appliance: expose custom_adapters on the v1-6 appliance model
The top-level ApplianceV1_6 model declared first_port_name / port_name_format / port_segment_size but not custom_adapters, so the GET /appliances endpoint (response_model=schemas.Appliance) stripped custom_adapters from the response — the frontend never saw per-adapter port names even though the appliance file and the server-side template conversion (appliance_to_template reads it from the raw dict) handled it. Add custom_adapters: Optional[List[CustomAdapterItem]] to ApplianceV1_6 so the field round-trips through the API. (ApplianceV8 already models it inside its TemplateSetting.)
This commit is contained in:
parent
141b3d8701
commit
9e830f7883
@ -632,6 +632,9 @@ class ApplianceV1_6(BaseModel):
|
||||
None,
|
||||
title='Optional port segment size. A port segment is a block of port. For example Ethernet0/0 Ethernet0/1 is the module 0 with a port segment size of 2',
|
||||
)
|
||||
custom_adapters: Optional[List[CustomAdapterItem]] = Field(
|
||||
None, title='Optional per-adapter overrides (port name, adapter type, MAC address)'
|
||||
)
|
||||
linked_clone: Optional[bool] = Field(None, title="False if you don't want to use a single image for all nodes")
|
||||
docker: Optional[Docker] = Field(None, title='Docker specific options')
|
||||
iou: Optional[Iou] = Field(None, title='IOU specific options')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user