[pve-devel] [PATCH qemu-server 1/1] add 'tags' option

Dominik Csapak d.csapak at proxmox.com
Tue Sep 10 14:57:14 CEST 2019


this is useful as meta information for e.g., provisioning or config
management systems

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 PVE/API2/Qemu.pm  | 1 +
 PVE/QemuServer.pm | 6 ++++++
 2 files changed, 7 insertions(+)

diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm
index 245de80..ea2d55d 100644
--- a/PVE/API2/Qemu.pm
+++ b/PVE/API2/Qemu.pm
@@ -281,6 +281,7 @@ my $generaloptions = {
     'startup' => 1,
     'tdf' => 1,
     'template' => 1,
+    'tags' => 1,
 };
 
 my $vmpoweroptions = {
diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 7128723..1aa51fd 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -695,6 +695,11 @@ EODESCR
 	description => "Configure additional enhancements for SPICE.",
 	optional => 1
     },
+    tags => {
+	type => 'string', format => 'pve-tag-list',
+	description => 'Tags of the VM. This is only meta information.',
+	optional => 1,
+    },
 };
 
 my $cicustom_fmt = {
@@ -4879,6 +4884,7 @@ my $fast_plug_option = {
     'protection' => 1,
     'vmstatestorage' => 1,
     'hookscript' => 1,
+    'tags' => 1,
 };
 
 # hotplug changes in [PENDING]
-- 
2.20.1





More information about the pve-devel mailing list