[GH-ISSUE #341] Overhaul: Qemu Network interfaces. #82

Closed
opened 2026-02-28 00:40:30 +03:00 by kerem · 2 comments
Owner

Originally created by @Tinyblargon on GitHub (Jun 13, 2024).
Original GitHub issue: https://github.com/Telmate/proxmox-api-go/issues/341

Originally assigned to: @Tinyblargon on GitHub.

The network adapters of ConfigQemu{} don't neatly map to the data-structure the PVE API uses.
We currently use an array.
PVE uses an map[id]settings.

With our current implementation it's not possible to have network interfaces that aren't consecutive.
In PVE users can have interface1 and interface3 configured. Our current implantation can't distinguish between.

  • inteface1
  • interface2

and

  • interface1
  • interface5

In this instance interface5 is the second interface. so it will be the second item in the array.
Before you start working on this please discuss it with me.

Originally created by @Tinyblargon on GitHub (Jun 13, 2024). Original GitHub issue: https://github.com/Telmate/proxmox-api-go/issues/341 Originally assigned to: @Tinyblargon on GitHub. The network adapters of `ConfigQemu{}` don't neatly map to the data-structure the PVE API uses. We currently use an array. PVE uses an map[id]settings. With our current implementation it's not possible to have network interfaces that aren't consecutive. In PVE users can have interface1 and interface3 configured. Our current implantation can't distinguish between. - inteface1 - interface2 and - interface1 - interface5 In this instance interface5 is the second interface. so it will be the second item in the array. Before you start working on this please discuss it with me.
kerem 2026-02-28 00:40:30 +03:00
Author
Owner

@Tinyblargon commented on GitHub (Jun 21, 2024):

This will include #333

<!-- gh-comment-id:2182493767 --> @Tinyblargon commented on GitHub (Jun 21, 2024): This will include #333
Author
Owner

@Tinyblargon commented on GitHub (Aug 27, 2024):

Working on this in https://github.com/Tinyblargon/proxmox-api-go/tree/%23341

<!-- gh-comment-id:2313042691 --> @Tinyblargon commented on GitHub (Aug 27, 2024): Working on this in https://github.com/Tinyblargon/proxmox-api-go/tree/%23341
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/proxmox-api-go#82
No description provided.