[GH-ISSUE #394] USB port_id schema wrong port path parsing #105

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

Originally created by @huettern on GitHub (Jan 10, 2025).
Original GitHub issue: https://github.com/Telmate/proxmox-api-go/issues/394

The validator

github.com/Telmate/proxmox-api-go@105874332f/proxmox/config_qemu_usb.go (L343-L345)

Expects a USB port of the form x-y, where x and y are integers. But according to the Proxmox Doc, y is the port path and is of the form a[.b[.c]...] where a, b, c are integers.

So the validator should be changed to check that y is a .-delimited list of integers.

Valid port paths are

  • 3-1
  • 3-1.1
  • 3-1.2.3
  • etc..
Originally created by @huettern on GitHub (Jan 10, 2025). Original GitHub issue: https://github.com/Telmate/proxmox-api-go/issues/394 The validator https://github.com/Telmate/proxmox-api-go/blob/105874332f3adc5757de9e6c487106b02350edf6/proxmox/config_qemu_usb.go#L343-L345 Expects a USB port of the form `x-y`, where `x` and `y` are integers. But according to the [Proxmox Doc](https://pve.proxmox.com/wiki/USB_Devices_in_Virtual_Machines#Alternate_way:_pass_the_USB_port_to_the_guest), `y` is the port path and is of the form `a[.b[.c]...]` where `a, b, c` are integers. So the validator should be changed to check that `y` is a `.`-delimited list of integers. Valid port paths are - `3-1` - `3-1.1` - `3-1.2.3` - etc..
kerem closed this issue 2026-02-28 00:40:35 +03:00
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#105
No description provided.