summaryrefslogtreecommitdiff
path: root/virtinst/devices/char.py
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2019-05-13 11:59:57 -0400
committerCole Robinson <crobinso@redhat.com>2019-05-13 12:36:17 -0400
commitba1764943b03002417d86cea5e016d4c742edb7d (patch)
treef38d0e83d1d5212d3b111b7d167439f2c5e45768 /virtinst/devices/char.py
parente6eb1d447bd4d8302856394c997d72d15fb3cc2e (diff)
downloadvirt-manager-ba1764943b03002417d86cea5e016d4c742edb7d.tar.gz
devices: char: drop tty fallback reading
This is only for ancient rhel5 era libvirt, We don't need it anymore and it complicates XML handling
Diffstat (limited to 'virtinst/devices/char.py')
-rw-r--r--virtinst/devices/char.py15
1 files changed, 2 insertions, 13 deletions
diff --git a/virtinst/devices/char.py b/virtinst/devices/char.py
index 9a323b7d..f6f6aab5 100644
--- a/virtinst/devices/char.py
+++ b/virtinst/devices/char.py
@@ -143,13 +143,12 @@ class _DeviceChar(Device):
_XML_PROP_ORDER = ["type",
"bind_host", "bind_service",
"source_mode", "connect_host", "connect_service",
- "_source_path", "source_channel",
+ "source_path", "source_channel",
"target_type", "target_name", "target_state"]
type = XMLProperty("./@type")
- _tty = XMLProperty("./@tty")
- _source_path = XMLProperty("./source/@path")
+ source_path = XMLProperty("./source/@path")
source_channel = XMLProperty("./source/@channel")
source_master = XMLProperty("./source/@master")
source_slave = XMLProperty("./source/@slave")
@@ -165,16 +164,6 @@ class _DeviceChar(Device):
log_file = XMLProperty("./log/@file")
log_append = XMLProperty("./log/@append", is_onoff=True)
- # Convenience property to get source_path or tty, for old libvirt compat
- def _get_source_path(self):
- source = self._source_path
- if source is None and self._tty:
- return self._tty
- return source
- def _set_source_path(self, val):
- self._source_path = val
- source_path = property(_get_source_path, _set_source_path)
-
# Convenience source helpers for setting connect/bind host and service
connect_host = XMLProperty("./source[@mode='connect']/@host")
connect_service = XMLProperty(