diff options
author | Cole Robinson <crobinso@redhat.com> | 2019-06-05 15:04:35 -0400 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2019-06-05 16:35:34 -0400 |
commit | 966b0b5a6b133a1c8af5128586b516ce4060f028 (patch) | |
tree | 7848d8fae5e6f8054a42d7c0d380b82c41ac9571 /virtinst/nodedev.py | |
parent | 9e56169813763caf723427c6bb7fc4472c002d35 (diff) | |
download | virt-manager-966b0b5a6b133a1c8af5128586b516ce4060f028.tar.gz |
nodedev: Drop cap 'system' parsing
We don't use it for anything internally
Diffstat (limited to 'virtinst/nodedev.py')
-rw-r--r-- | virtinst/nodedev.py | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/virtinst/nodedev.py b/virtinst/nodedev.py index df8644de..302a0679 100644 --- a/virtinst/nodedev.py +++ b/virtinst/nodedev.py @@ -33,7 +33,6 @@ class DevNode(XMLBuilder): class NodeDevice(XMLBuilder): - CAPABILITY_TYPE_SYSTEM = "system" CAPABILITY_TYPE_NET = "net" CAPABILITY_TYPE_PCI = "pci" CAPABILITY_TYPE_USBDEV = "usb_device" @@ -124,26 +123,6 @@ class NodeDevice(XMLBuilder): return False -class SystemDevice(NodeDevice): - hw_vendor = XMLProperty("./capability/hardware/vendor") - hw_version = XMLProperty("./capability/hardware/version") - hw_serial = XMLProperty("./capability/hardware/serial") - hw_uuid = XMLProperty("./capability/hardware/uuid") - - fw_vendor = XMLProperty("./capability/firmware/vendor") - fw_version = XMLProperty("./capability/firmware/version") - fw_date = XMLProperty("./capability/firmware/release_date") - - def pretty_name(self): - desc = _("System") - if self.hw_vendor: - desc += ": %s" % self.hw_vendor - if self.hw_version: - desc += " %s" % self.hw_version - - return desc - - class NetDevice(NodeDevice): interface = XMLProperty("./capability/interface") address = XMLProperty("./capability/address") @@ -395,9 +374,7 @@ def _AddressStringToNodedev(conn, addrstr): def _typeToDeviceClass(t): - if t == NodeDevice.CAPABILITY_TYPE_SYSTEM: - return SystemDevice - elif t == NodeDevice.CAPABILITY_TYPE_NET: + if t == NodeDevice.CAPABILITY_TYPE_NET: return NetDevice elif t == NodeDevice.CAPABILITY_TYPE_PCI: return PCIDevice |