[PATCH container 0/2] Add DHCPv6 DUID support to container interface query

Alex Goodkind alex at goodkind.io
Mon Nov 24 01:43:00 CET 2025


This patch series adds DHCPv6 DUID (DHCP Unique Identifier) support
to the container interface query API. The implementation retrieves the
DUID via networkctl and formats it according to RFC 8415 with the
appropriate type prefix.

The first patch extends the get_interfaces function to query networkctl
for DUID information and parse it into the proper format. The second
patch updates the API schema to include the duid field in the response.

This allows users to see the DHCPv6 DUID assigned to each
container network interface, which is necessary for setting up
static DHCPv6 leases programmatically and useful for network
management and debugging DHCPv6 configurations.

Note: When applying these patches, please preserve my email address
<alex at goodkind.io> in the Author field for proper attribution.
Previously, when I sent patches via the mailing list, the Author field
was rewritten to "Alex Goodkind via pve-devel <pve-devel at lists.proxmox.com>",
which prevented GitHub from correctly attributing the commits to my
account. Thank you!

Alex Goodkind (2):
  lxc: add DHCPv6 DUID retrieval to get_interfaces
  api: add duid field to container interface schema

 src/PVE/API2/LXC.pm |  5 ++++
 src/PVE/LXC.pm      | 72 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 77 insertions(+)

-- 
2.43.0




More information about the pve-devel mailing list