]> git.proxmox.com Git - pve-network.git/commit
api: take partial configs for PUT /cluster/sdn/zones/<id>
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 22 Nov 2023 10:08:21 +0000 (11:08 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 22 Nov 2023 11:21:38 +0000 (12:21 +0100)
commit3e3cafabaf955d53c4c2d4e346bf5c3a5c6d1852
tree83a2a8c3c968b295579b4cd2a4eb86c760632d3e
parent9b448b01547fa7537d8f54cb88b64dfb3ad34b8a
api: take partial configs for PUT /cluster/sdn/zones/<id>

Zones previously expected a complete config, but the API schema
also contains a 'delete' parameter via the SectionConfig's
updateSchema() helper. This was not handled, and instead failed to
validate as part of the config.

The same is true for vnets and subnets, while ipams, dns and
controller entries followed our usual update procedures (but also
ignored the 'delete' parameter).

Since all of our SectionConfig based API endpoints are supposed to
take changes, rather than complete configs, this changes these
endpoints to not replace the full configuration anymore.

This is a major break for automation tools (the web UI already passed
the full config each time).

Cc: Alexandre Derumier <aderumier@odiso.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/PVE/API2/Network/SDN/Zones.pm