mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-26 10:03:54 +03:00
devices: char: Drop default 'protocol' setting
In the cases we were doing this, libvirt already defaults to raw for us
This commit is contained in:
parent
68b4236262
commit
0ec251dae4
@ -184,8 +184,6 @@ class _DeviceChar(Device):
|
|||||||
def set_defaults(self, _guest):
|
def set_defaults(self, _guest):
|
||||||
if not self.source_mode and self.supports_property("source_mode"):
|
if not self.source_mode and self.supports_property("source_mode"):
|
||||||
self.source_mode = "bind"
|
self.source_mode = "bind"
|
||||||
if not self.protocol and self.supports_property("protocol"):
|
|
||||||
self.protocol = "raw"
|
|
||||||
if not self.target_type and self.DEVICE_TYPE == "channel":
|
if not self.target_type and self.DEVICE_TYPE == "channel":
|
||||||
self.target_type = "virtio"
|
self.target_type = "virtio"
|
||||||
if not self.target_name and self.type == self.TYPE_SPICEVMC:
|
if not self.target_name and self.type == self.TYPE_SPICEVMC:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user