Stub implementations of VM.auto_power_on, VM.consoles.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
Ewan Mellor committed 2006-12-14 17:43:41 +00:00
1 parent 8e5b7018e7
commit a7416ebe65
3 files changed
+9

No files matched your search

+4
View File
@@ -567,6 +567,7 @@ class XendAPI:
'VCPUs_utilisation',
'VCPUs_features_required',
'VCPUs_can_use',
'consoles',
'VIFs',
'VBDs',
'VTPMs',
@@ -578,6 +579,7 @@ class XendAPI:
'name_description',
'user_version',
'is_a_template',
'auto_power_on',
'memory_dynamic_max',
'memory_dynamic_min',
'VCPUs_policy',
@@ -961,6 +963,7 @@ class XendAPI:
'name_description': xeninfo.getName(),
'user_version': 1,
'is_a_template': False,
'auto_power_on': False,
'resident_on': XendNode.instance().uuid,
'memory_static_min': xeninfo.get_memory_static_min(),
'memory_static_max': xeninfo.get_memory_static_max(),
@@ -979,6 +982,7 @@ class XendAPI:
'actions_after_reboot': xeninfo.get_on_reboot(),
'actions_after_suspend': xeninfo.get_on_suspend(),
'actions_after_crash': xeninfo.get_on_crash(),
'consoles': xeninfo.get_consoles(),
'VIFs': xeninfo.get_vifs(),
'VBDs': xeninfo.get_vbds(),
'VTPMs': xeninfo.get_vtpms(),
+2
View File
@@ -353,6 +353,7 @@ class XendConfig(dict):
'online_vcpus': 1,
'max_vcpu_id': 0,
'vcpu_avail': 1,
'console_refs': [],
'vif_refs': [],
'vbd_refs': [],
'vtpm_refs': [],
@@ -643,6 +644,7 @@ class XendConfig(dict):
# set device references in the configuration
self['devices'] = cfg.get('devices', {})
self['console_refs'] = []
self['vif_refs'] = []
self['vbd_refs'] = []
self['vtpm_refs'] = []
+3
View File
@@ -1927,6 +1927,9 @@ class XendDomainInfo:
return vcpu_util
def get_consoles(self):
return self.info.get('console_refs', [])
def get_vifs(self):
return self.info.get('vif_refs', [])
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.