[virt-tools-list] [PATCH virt-manager 1/5] virtinst: add new vmport domain feature
Marc-André Lureau
marcandre.lureau at gmail.com
Thu Apr 2 22:04:04 UTC 2015
This should be available with libvirt 1.2.15
---
virtinst/domainfeatures.py | 3 +++
virtinst/support.py | 2 ++
2 files changed, 5 insertions(+)
diff --git a/virtinst/domainfeatures.py b/virtinst/domainfeatures.py
index bec538b..16d8ee2 100644
--- a/virtinst/domainfeatures.py
+++ b/virtinst/domainfeatures.py
@@ -45,3 +45,6 @@ class DomainFeatures(XMLBuilder):
hyperv_spinlocks = XMLProperty("./hyperv/spinlocks/@state", is_onoff=True)
hyperv_spinlocks_retries = XMLProperty("./hyperv/spinlocks/@retries",
is_int=True)
+
+ vmport = XMLProperty("./vmport/@state", is_onoff=True,
+ default_name="default", default_cb=lambda s: False)
diff --git a/virtinst/support.py b/virtinst/support.py
index 0b11076..f7beeb1 100644
--- a/virtinst/support.py
+++ b/virtinst/support.py
@@ -303,6 +303,8 @@ SUPPORT_CONN_DOMAIN_CAPABILITIES = _make(
function="virConnect.getDomainCapabilities",
run_args=(None, None, None, None))
SUPPORT_CONN_VIDEO_NEW_RAM_OUTPUT = _make(version="1.2.11")
+SUPPORT_CONN_VMPORT = _make(
+ version="1.2.15", hv_version={"qemu": "2.2.0"})
# Domain checks
--
2.1.0
More information about the virt-tools-list
mailing list