20 lines
825 B
Diff
20 lines
825 B
Diff
Index: xen-3.1-testing/tools/python/xen/xend/XendDomainInfo.py
|
|
===================================================================
|
|
--- xen-3.1-testing.orig/tools/python/xen/xend/XendDomainInfo.py
|
|
+++ xen-3.1-testing/tools/python/xen/xend/XendDomainInfo.py
|
|
@@ -2349,6 +2349,14 @@ class XendDomainInfo:
|
|
if not config.has_key('backend'):
|
|
config['backend'] = "00000000-0000-0000-0000-000000000000"
|
|
|
|
+ if dev_class == 'console':
|
|
+ if not config.has_key('protocol'):
|
|
+ con_type = config.get('type', '')
|
|
+ if con_type == 'vnc':
|
|
+ config['protocol'] = 'rfb'
|
|
+ elif con_type == 'sdl':
|
|
+ config['protocol'] = 'rdp'
|
|
+
|
|
return config
|
|
|
|
def get_dev_property(self, dev_class, dev_uuid, field):
|