mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
[XEND][LIFECYCLE] Configurable storage path for lifecycle support
Signed-off-by: Alastair Tse <atse@xensource.com>
This commit is contained in:
1 parent
80e180d5b3
commit
5bbd381a3b
1 file changed
+8
@@ -93,6 +93,9 @@ class XendRoot:
|
||||
|
||||
dom0_vcpus_default = '0'
|
||||
|
||||
"""Default session storage path."""
|
||||
xend_domains_path_default = '/var/lib/xend/domains'
|
||||
|
||||
components = {}
|
||||
|
||||
def __init__(self):
|
||||
@@ -237,6 +240,11 @@ class XendRoot:
|
||||
"""
|
||||
return self.get_config_value("xend-unix-path", self.xend_unix_path_default)
|
||||
|
||||
def get_xend_domains_path(self):
|
||||
""" Get the path for persistent domain configuration storage
|
||||
"""
|
||||
return self.get_config_value("xend-domains-path", self.xend_domains_path_default)
|
||||
|
||||
def get_network_script(self):
|
||||
"""@return the script used to alter the network configuration when
|
||||
Xend starts and stops, or None if no such script is specified."""
|
||||
|
||||