virtinst: add new vmport domain feature
This should be available with libvirt 1.2.16 Message-Id: <1428012248-5767-2-git-send-email-marcandre.lureau@gmail.com>
This commit is contained in:
parent
cc67f8f194
commit
ea4aa9ffc4
|
@ -40,8 +40,10 @@ class XMLParseTest(unittest.TestCase):
|
|||
actualXML = guest.get_xml_config()
|
||||
utils.diff_compare(actualXML, expect_out=expectXML)
|
||||
|
||||
def _alter_compare(self, actualXML, outfile):
|
||||
def _alter_compare(self, actualXML, outfile, support_check=None):
|
||||
utils.diff_compare(actualXML, outfile)
|
||||
if (support_check and not conn.check_support(support_check)):
|
||||
return
|
||||
utils.test_create(conn, actualXML)
|
||||
|
||||
def testRoundTrip(self):
|
||||
|
@ -222,7 +224,8 @@ class XMLParseTest(unittest.TestCase):
|
|||
check("nosharepages", False, True)
|
||||
check("locked", False, True)
|
||||
|
||||
self._alter_compare(guest.get_xml_config(), outfile)
|
||||
self._alter_compare(guest.get_xml_config(), outfile,
|
||||
support_check=conn.SUPPORT_CONN_VMPORT)
|
||||
|
||||
def testAlterMinimalGuest(self):
|
||||
guest, outfile = self._get_test_content("change-minimal-guest")
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -305,6 +305,8 @@ SUPPORT_CONN_DOMAIN_CAPABILITIES = _make(
|
|||
SUPPORT_CONN_VIDEO_NEW_RAM_OUTPUT = _make(version="1.2.11")
|
||||
SUPPORT_CONN_DOMAIN_RESET = _make(version="0.9.7", hv_version={"qemu": 0})
|
||||
SUPPORT_CONN_SPICE_COMPRESSION = _make(version="0.9.1")
|
||||
SUPPORT_CONN_VMPORT = _make(
|
||||
version="1.2.16", hv_version={"qemu": "2.2.0", "test": 0})
|
||||
|
||||
|
||||
# Domain checks
|
||||
|
|
Loading…
Reference in New Issue