2008-09-12 15:57:53 +00:00
|
|
|
Index: xen-3.3.1-testing/tools/python/xen/xend/XendDomainInfo.py
|
2007-04-25 23:53:07 +00:00
|
|
|
===================================================================
|
2008-09-12 15:57:53 +00:00
|
|
|
--- xen-3.3.1-testing.orig/tools/python/xen/xend/XendDomainInfo.py
|
|
|
|
+++ xen-3.3.1-testing/tools/python/xen/xend/XendDomainInfo.py
|
2008-12-05 14:30:41 +00:00
|
|
|
@@ -3239,6 +3239,14 @@ class XendDomainInfo:
|
2007-04-25 23:53:07 +00:00
|
|
|
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):
|