示例#1
0
    def testParseSRIOV_VFDeviceParams(self):
        deviceXML = hostdev._parse_device_params(
            libvirtconnection.get().nodeDeviceLookupByName(
                _SRIOV_VF).XMLDesc()
        )

        self.assertEquals(_SRIOV_VF_PARSED, deviceXML)
示例#2
0
    def testParseNetDeviceParams(self):
        deviceXML = hostdev._parse_device_params(
            libvirtconnection.get().nodeDeviceLookupByName(
                _NET_DEVICE).XMLDesc()
        )

        self.assertEquals(_NET_DEVICE_PARSED, deviceXML)
示例#3
0
    def testParseNetDeviceParams(self):
        deviceXML = hostdev._parse_device_params(
            libvirtconnection.get().nodeDeviceLookupByName(
                _NET_DEVICE).XMLDesc()
        )

        self.assertEquals(_NET_DEVICE_PARSED, deviceXML)
示例#4
0
    def testParseSRIOV_VFDeviceParams(self):
        deviceXML = hostdev._parse_device_params(
            libvirtconnection.get().nodeDeviceLookupByName(
                _SRIOV_VF).XMLDesc()
        )

        self.assertEquals(_SRIOV_VF_PARSED, deviceXML)
示例#5
0
    def testParseNetDeviceParams(self):
        deviceXML = hostdev._parse_device_params(_NET_DEVICE)

        self.assertEquals(_NET_DEVICE_PARSED, deviceXML)
示例#6
0
    def testParseSRIOV_VFDeviceParams(self):
        deviceXML = hostdev._parse_device_params(_SRIOV_VF_XML)

        self.assertEquals(_SRIOV_VF_PARSED, deviceXML)
示例#7
0
    def testParseDeviceParams(self):
        deviceXML = hostdev._parse_device_params(ADDITIONAL_DEVICE)

        self.assertEquals(ADDITIONAL_DEVICE_PARSED, deviceXML)
示例#8
0
    def testParseNetDeviceParams(self):
        deviceXML = hostdev._parse_device_params(_NET_DEVICE)

        self.assertEquals(_NET_DEVICE_PARSED, deviceXML)
示例#9
0
    def testParseSRIOV_VFDeviceParams(self):
        deviceXML = hostdev._parse_device_params(_SRIOV_VF_XML)

        self.assertEquals(_SRIOV_VF_PARSED, deviceXML)
示例#10
0
    def testParseDeviceParams(self):
        deviceXML = hostdev._parse_device_params(ADDITIONAL_DEVICE)

        self.assertEquals(ADDITIONAL_DEVICE_PARSED, deviceXML)