Commit 22d568c2 authored by Guido Trotter's avatar Guido Trotter
Browse files

xen: abstract a few hardcoded strings as constants


Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent e366273a
......@@ -34,6 +34,11 @@ from ganeti import netutils
from ganeti import objects
XEND_CONFIG_FILE = "/etc/xen/xend-config.sxp"
XL_CONFIG_FILE = "/etc/xen/xl.conf"
VIF_BRIDGE_SCRIPT = "/etc/xen/scripts/vif-bridge"
class XenHypervisor(hv_base.BaseHypervisor):
"""Xen generic hypervisor interface
......@@ -46,9 +51,9 @@ class XenHypervisor(hv_base.BaseHypervisor):
REBOOT_RETRY_INTERVAL = 10
ANCILLARY_FILES = [
"/etc/xen/xend-config.sxp",
"/etc/xen/xl.conf",
"/etc/xen/scripts/vif-bridge",
XEND_CONFIG_FILE,
XL_CONFIG_FILE,
VIF_BRIDGE_SCRIPT,
]
@staticmethod
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment