2011-09-15 23:43:21 +02:00
|
|
|
Index: xen-4.1.2-testing/tools/python/xen/xend/XendDomainInfo.py
|
2007-04-26 01:53:07 +02:00
|
|
|
===================================================================
|
2011-09-15 23:43:21 +02:00
|
|
|
--- xen-4.1.2-testing.orig/tools/python/xen/xend/XendDomainInfo.py
|
|
|
|
+++ xen-4.1.2-testing/tools/python/xen/xend/XendDomainInfo.py
|
2012-01-23 22:46:39 +01:00
|
|
|
@@ -3935,6 +3935,14 @@ class XendDomainInfo:
|
2007-04-26 01:53:07 +02: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):
|