mirror of
https://github.com/proxmoxer/proxmoxer.git
synced 2026-04-25 07:06:00 +03:00
[GH-ISSUE #215] Unable to Set Multiple DHCP Ranges for a Subnet via Proxmoxer #119
Labels
No labels
backend:https
backend:local
backend:openssh
backend:ssh_paramiko
pull-request
status:ansible-issue
status:help-wanted
status:info-needed
status:proxmox-issue
status:review-needed
type:bug 🐞
type:dependency ⛓️
type:docs 📝
type:enhancement ⏫
type:maintenance 🛠️
type:meta
type:question ❓
type:request ✋
type:testing 🧪
version:1.x
version:latest
version:py2
version:py3
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/proxmoxer#119
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?
Originally created by @sstock2005 on GitHub (Jan 9, 2026).
Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/215
Unable to Set Multiple DHCP Ranges for a Subnet via Proxmoxer
Hello! I'm running into an issue trying to configure multiple DHCP ranges for a subnet using the Proxmoxer library.
The Problem
According to the Proxmox REST API, the
dhcp-rangeparameter can be repeated in a single request to define multiple ranges. For example, the API expects something like:From what I've read Python dictionaries (and therefore
**kwargs) do not allow duplicate keys. As a result, it seems impossible to send multipledhcp-rangeparameters in a single call through Proxmoxer.What I've Tried
This only allows setting a single DHCP range because the dictionary cannot contain duplicate dhcp-range keys. I tried to use tuples and index keys but the REST API returns a schema error.
Expected Behavior
I would like to be able to set multiple DHCP ranges for a subnet in a single API call using Proxmoxer, in the same way the REST API supports repeated dhcp-range parameters.
Question
Is there a supported way in Proxmoxer to send repeated parameters like
dhcp-range? Or is this a limitation of the library?Any guidance or workarounds would be greatly appreciated!
@morph027 commented on GitHub (Jan 9, 2026):
The API spec says it's of type
arrayand description is A list of DHCP ranges for this subnet in format[pve-sdn-dhcp-range, ...]So this might work (not tested):
@sstock2005 commented on GitHub (Jan 21, 2026):
This works! Thank you!
Nonevalues from request params and data (Fixes #119) #183