From 12c3d3f6bf3c55e29a9c6ce0e9ab018adb9f49be Mon Sep 17 00:00:00 2001
From: Iustin Pop <iustin@google.com>
Date: Thu, 29 Dec 2011 16:19:37 +0100
Subject: [PATCH] Add a new disk-template ipolicy option
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: RenΓ© Nussbaumer <rn@google.com>
---
 lib/cli.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/lib/cli.py b/lib/cli.py
index be68a4e09..2c611c0b8 100644
--- a/lib/cli.py
+++ b/lib/cli.py
@@ -171,6 +171,7 @@ __all__ = [
   "SPECS_DISK_SIZE_OPT",
   "SPECS_MEM_SIZE_OPT",
   "SPECS_NIC_COUNT_OPT",
+  "SPECS_DISK_TEMPLATES",
   "SPICE_CACERT_OPT",
   "SPICE_CERT_OPT",
   "SRC_DIR_OPT",
@@ -802,6 +803,12 @@ SPECS_NIC_COUNT_OPT = cli_option("--specs-nic-count", dest="ispecs_nic_count",
                                  type="keyval", default={},
                                  help="NIC count specs: min, max, std")
 
+SPECS_DISK_TEMPLATES = cli_option("--specs-disk-templates",
+                                  dest="ispecs_disk_templates",
+                                  type="list", default=None,
+                                  help="Comma-separated list of"
+                                  " enabled disk templates")
+
 HYPERVISOR_OPT = cli_option("-H", "--hypervisor-parameters", dest="hypervisor",
                             help="Hypervisor and hypervisor options, in the"
                             " format hypervisor:option=value,option=value,...",
-- 
GitLab