mirror of
https://github.com/luthermonson/go-proxmox.git
synced 2026-04-26 01:15:57 +03:00
[PR #244] [MERGED] Update VNet Tag type to uint32 and add max VNet Tag test case #246
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/go-proxmox#246
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/luthermonson/go-proxmox/pull/244
Author: @kernel-sanders
Created: 2/18/2026
Status: ✅ Merged
Merged: 2/18/2026
Merged by: @luthermonson
Base:
main← Head:fix-vnet-int-size📝 Commits (1)
aac3786Update VNet Tag type to uint32 and add max VNet Tag test case📊 Changes
5 files changed (+29 additions, -2 deletions)
View changed files
📝
cluster_test.go(+7 -1)📝
tests/mocks/pve7x/cluster.go(+7 -0)📝
tests/mocks/pve8x/cluster.go(+7 -0)📝
tests/mocks/pve9x/cluster.go(+7 -0)📝
types.go(+1 -1)📄 Description
Tag values for VNets can be in the range
1 - 16777215. They were previously stored in auint16which has as max value of65535. This caused an error when runningcluster.SDNVNet(ctx, "maxTagVnet")on a VNet with a tag value > 65535:json: cannot unmarshal number 16777215 into Go struct field VNet.tag of type uint16.This pull request changes the VNet Tag value to a
uint32which has a max value of4294967295and can hold any possible VNet tag value, and adds a test for a VNet with a tag value of16777215to catch any regression.Documentation: https://pve.proxmox.com/pve-docs/api-viewer/#/cluster/sdn/vnets/{vnet}
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.