summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYun Huang <yun.huang@windriver.com>2018-03-26 16:21:57 +0800
committerYun Huang <yun.huang@windriver.com>2018-03-26 16:21:57 +0800
commitcab47ee33492d244b3f926e4f71f118b4c1ac7f1 (patch)
tree507943760b8419d08a1f6570cb0adbd26734f828
parent602da8239732a2c4cd8cdc67a0aaa58ee9a775fb (diff)
UT data for pci passthrough set capabilities
Change-Id: Icb842ef8c8a020f16c06f88966abae1ff598b9d9 Issue-ID: MULTICLOUD-200 Signed-off-by: Yun Huang <yun.huang@windriver.com>
-rw-r--r--windriver/titanium_cloud/registration/tests/test_registration.py3
-rw-r--r--windriver/titanium_cloud/registration/views/registration.py2
2 files changed, 3 insertions, 2 deletions
diff --git a/windriver/titanium_cloud/registration/tests/test_registration.py b/windriver/titanium_cloud/registration/tests/test_registration.py
index 8ef4b4b8..0b3a516d 100644
--- a/windriver/titanium_cloud/registration/tests/test_registration.py
+++ b/windriver/titanium_cloud/registration/tests/test_registration.py
@@ -60,7 +60,8 @@ MOCK_GET_FLAVOR_EXTRA_SPECS_RESPONSE = {
"hw:numa_cpus.1" : "2,3,4,5",
"hw:numa_mem.0" : "2048",
"hw:numa_mem.1" : "2048",
- "hw:capabilities:cpu_info:features":"avx,acpi"
+ "hw:capabilities:cpu_info:features":"avx,acpi",
+ "pci_passthrough:alias":"sriov-vf-intel-8086-15b3:4"
}
}
diff --git a/windriver/titanium_cloud/registration/views/registration.py b/windriver/titanium_cloud/registration/views/registration.py
index 992353ca..bdf89a15 100644
--- a/windriver/titanium_cloud/registration/views/registration.py
+++ b/windriver/titanium_cloud/registration/views/registration.py
@@ -127,7 +127,7 @@ class Registry(newton_registration.Registry):
# PCI passthrough capabilities
caps_dict = self._get_pci_passthrough_capabilities(extra_specs)
if len(caps_dict) > 0:
- self._logger.debug("pxi_passthrough_capabilities_info: %s" % caps_dict)
+ self._logger.debug("pci_passthrough_capabilities_info: %s" % caps_dict)
hpa_caps.append(caps_dict)
return hpa_caps