--- Begin Message ---
Add the `unique-next-id` property to the datacentre config schema to
track whether only unique (ie. neither currently nor previously in use)
VM/CT IDs should be suggested by the `/cluster/nextid` API endpoint.

Co-authored-by: Daniel Krambrock <krambr...@hrz.uni-marburg.de>
Signed-off-by: Severen Redwood <severen.redw...@sitehost.co.nz>
Tested-by: Aaron Lauterer <a.laute...@proxmox.com>
Reviewed-by: Aaron Lauterer <a.laute...@proxmox.com>
---
There are no changes to this patch since v3.

 src/PVE/DataCenterConfig.pm | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/PVE/DataCenterConfig.pm b/src/PVE/DataCenterConfig.pm
index abd0bbf..d1d4533 100644
--- a/src/PVE/DataCenterConfig.pm
+++ b/src/PVE/DataCenterConfig.pm
@@ -337,6 +337,11 @@ my $datacenter_schema = {
            format => $next_id_format,
            description => "Control the range for the free VMID auto-selection 
pool.",
        },
+       'unique-next-id' => {
+           optional => 1,
+           type => 'boolean',
+           description => "Only suggest VMIDs that are neither currently in 
use nor have previously been used.",
+       },
        migration => {
            optional => 1,
            type => 'string', format => $migration_format,
-- 
2.47.0



--- End Message ---
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to