virt-manager/virtManager
Pavel Hrdina f1976155cd sshtunnels: use <listen> element to get UNIX socket for graphics
Graphics devices has a new XML element to configure UNIX socket path:

  <graphics type='vnc' socket='/path/to/socket'>
    <listen type='socket' socket='/path/to/socket'/>
  </graphics>

  <graphics type='spice'>
    <listen type='socket' socket='/path/to/socket'/>
  </graphics>

and as you can see SPICE uses only the new XML element.  For VNC the
old 'socket' attribute is for backward compatibility.

In order to connect to SPICE graphics on remote host using SSH tunnel
we need to get the UNIX socket path from <listen> element.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1441127

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
2017-09-09 10:11:42 +02:00
..
__init__.py headers: update "Red Hat, Inc." copyright for the year 2013 2013-10-28 17:22:26 +01:00
about.py virtManager: Switch to relative imports 2014-09-12 16:28:38 -04:00
addhardware.py devicepanic: add all models supported by libvirt 2017-09-09 10:09:46 +02:00
addstorage.py pycodestyle: Do not use bare 'except:' 2017-08-02 13:57:43 -04:00
asyncjob.py pycodestyle: fix all E203 warnings 2017-08-11 00:01:38 +08:00
baseclass.py pycodestyle: Do not use bare 'except:' 2017-08-02 13:57:43 -04:00
choosecd.py Switch to python3 style 'except X as Y' notation 2017-05-05 14:52:11 -04:00
clone.py pycodestyle: fix all E131 warnings 2017-08-26 20:03:21 +08:00
config.py pycodestyle: fix all E203 warnings 2017-08-11 00:01:38 +08:00
connect.py pycodestyle: Do not use bare 'except:' 2017-08-02 13:57:43 -04:00
connectauth.py pycodestyle: Do not use bare 'except:' 2017-08-02 13:57:43 -04:00
connection.py pycodestyle: fix all E203 warnings 2017-08-11 00:01:38 +08:00
console.py Switch to python3 style 'except X as Y' notation 2017-05-05 14:52:11 -04:00
create.py pycodestyle: fix all E203 warnings 2017-08-11 00:01:38 +08:00
createinterface.py pycodestyle: fix all E131 warnings 2017-08-26 20:03:21 +08:00
createnet.py pycodestyle: fix all E203 warnings 2017-08-11 00:01:38 +08:00
createpool.py pycodestyle: fix all E203 warnings 2017-08-11 00:01:38 +08:00
createvol.py pycodestyle: fix all E203 warnings 2017-08-11 00:01:38 +08:00
delete.py pycodestyle: fix all E203 warnings 2017-08-11 00:01:38 +08:00
details.py devicepanic: use model instead of address.type 2017-09-09 10:09:46 +02:00
domain.py domain: only the first device from each group is bootable 2017-09-09 10:11:04 +02:00
engine.py engine: improve message about missing binaries 2017-08-16 17:32:18 -04:00
error.py spice: s/OK/Close/ in USB redirection dialog (bz 1465907) 2017-07-17 15:46:12 -04:00
fsdetails.py fsdetails: Simplify ram conversion 2017-06-27 14:21:18 -04:00
gfxdetails.py pycodestyle: fix all E203 warnings 2017-08-11 00:01:38 +08:00
graphwidgets.py pycodestyle: fix all E203 warnings 2017-08-11 00:01:38 +08:00
host.py pycodestyle: fix all E203 warnings 2017-08-11 00:01:38 +08:00
inspection.py pycodestyle: Do not use bare 'except:' 2017-08-02 13:57:43 -04:00
interface.py interface: don't print error for active interface without an IP address 2017-05-10 12:35:42 +02:00
keyring.py pycodestyle: fix all E203 warnings 2017-08-11 00:01:38 +08:00
libvirtobject.py pycodestyle: Do not use bare 'except:' 2017-08-02 13:57:43 -04:00
manager.py pycodestyle: fix all E131 warnings 2017-08-26 20:03:21 +08:00
mediacombo.py pycodestyle: Do not use bare 'except:' 2017-08-02 13:57:43 -04:00
migrate.py pycodestyle: fix all E203 warnings 2017-08-11 00:01:38 +08:00
module_trace.py module_trace: Only show main thread APIs by default 2014-09-21 12:05:02 -04:00
netlist.py pycodestyle: Do not use bare 'except:' 2017-08-02 13:57:43 -04:00
network.py libvirtobject: Drop redefine_cached 2015-04-10 17:23:11 -04:00
nodedev.py Use node device lifecycle events 2016-08-11 10:14:30 -04:00
packageutils.py packageutils: Ensure packages argument is a list 2017-08-07 17:27:30 -04:00
preferences.py pycodestyle: fix all E203 warnings 2017-08-11 00:01:38 +08:00
serialcon.py pycodestyle: Do not use bare 'except:' 2017-08-02 13:57:43 -04:00
snapshots.py pycodestyle: fix all E203 warnings 2017-08-11 00:01:38 +08:00
sshtunnels.py sshtunnels: use <listen> element to get UNIX socket for graphics 2017-09-09 10:11:42 +02:00
storagebrowse.py pycodestyle: fix all E203 warnings 2017-08-11 00:01:38 +08:00
storagelist.py pycodestyle: fix all E203 warnings 2017-08-11 00:01:38 +08:00
storagepool.py Switch to python3 style 'except X as Y' notation 2017-05-05 14:52:11 -04:00
systray.py pycodestyle: Do not use bare 'except:' 2017-08-02 13:57:43 -04:00
uiutil.py pycodestyle: Do not use bare 'except:' 2017-08-02 13:57:43 -04:00
viewers.py pycodestyle: Do not use bare 'except:' 2017-08-02 13:57:43 -04:00
vmmenu.py We can't clone a VM in some scenarios, 2016-10-06 23:12:59 +08:00