From 0c348b863d397329f871af82213e281d028b0913 Mon Sep 17 00:00:00 2001 From: Michael Hanselmann <hansmi@google.com> Date: Wed, 23 Jan 2013 18:41:01 +0100 Subject: [PATCH] constants: Add list of known Xen commands These will be used in unittests. Signed-off-by: Michael Hanselmann <hansmi@google.com> Reviewed-by: Iustin Pop <iustin@google.com> --- lib/constants.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/constants.py b/lib/constants.py index 4e04dff4f..5f96c47fe 100644 --- a/lib/constants.py +++ b/lib/constants.py @@ -197,6 +197,12 @@ XEN_CMD_XM = "xm" XEN_CMD_XL = "xl" # FIXME: This will be made configurable using hvparams in Ganeti 2.7 XEN_CMD = _autoconf.XEN_CMD + +KNOWN_XEN_COMMANDS = compat.UniqueFrozenset([ + XEN_CMD_XM, + XEN_CMD_XL, + ]) + # When the Xen toolstack used is "xl", live migration requires the source host # to connect to the target host via ssh (xl runs this command). We need to pass # the command xl runs some extra info so that it can use Ganeti's key -- GitLab