Skip to content

Update VNet Tag type to uint32 and add max VNet Tag test case#244

Merged
luthermonson merged 1 commit intoluthermonson:mainfrom
badsectorlabs:fix-vnet-int-size
Feb 18, 2026
Merged

Update VNet Tag type to uint32 and add max VNet Tag test case#244
luthermonson merged 1 commit intoluthermonson:mainfrom
badsectorlabs:fix-vnet-int-size

Conversation

@kernel-sanders
Copy link
Copy Markdown
Contributor

Tag values for VNets can be in the range 1 - 16777215. They were previously stored in a uint16 which has as max value of 65535. This caused an error when running cluster.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 uint32 which has a max value of 4294967295 and can hold any possible VNet tag value, and adds a test for a VNet with a tag value of 16777215 to catch any regression.

Documentation: https://pve.proxmox.com/pve-docs/api-viewer/#/cluster/sdn/vnets/{vnet}

@luthermonson
Copy link
Copy Markdown
Owner

nice catch

@luthermonson luthermonson merged commit 328f085 into luthermonson:main Feb 18, 2026
1 check passed
yusing pushed a commit to yusing/go-proxmox that referenced this pull request Feb 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants