mirror of
https://github.com/Telmate/proxmox-api-go.git
synced 2026-04-25 15:35:51 +03:00
[PR #530] Add support for host-managed parameter in LXC networks #530
Labels
No labels
good first issue
issue/confirmed
issue/critical
proposal/accepted
pull-request
type/bug
type/enhancement
type/feature
type/question
type/refactoring
type/testing
type/testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/proxmox-api-go#530
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/Telmate/proxmox-api-go/pull/530
Author: @halradaideh
Created: 12/6/2025
Status: 🔄 Open
Base:
master← Head:fix/lxc-host-managed-support📝 Commits (1)
999fe15feat: add support for host-managed parameter in LXC networks📊 Changes
1 file changed (+15 additions, -9 deletions)
View changed files
📝
proxmox/config__lxc__networks.go(+15 -9)📄 Description
Description
This PR adds support for the
host-managedparameter in LXC network configurations, which was introduced in Proxmox VE 9.1 for OCI-based containers.Problem
When creating LXC containers from OCI images (Docker Hub images) on Proxmox VE 9.1+, the API automatically sets a
host-managed=1parameter on network interfaces. The SDK was not parsing this parameter, which caused the provider to fail with validation errors.Changes
HostManagedfield toLxcNetworkstructGetNetworks()to read thehost-managedparameter from API responsesTechnical Details
The
host-managedparameter is automatically set by Proxmox for OCI-based containers to indicate that the network interface is managed by the host system. This is distinct from traditional LXC containers where this parameter is not present.API response example for OCI container:
Testing
Tested on Proxmox VE 9.1.1 with:
Backward Compatibility
Fully backward compatible. Traditional LXC templates that do not have the
host-managedparameter continue to work as before, with the field defaulting tofalse.Related
This change is required for the corresponding terraform-provider-proxmox PR to support OCI containers on Proxmox 9.1+.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.