diff --git a/os_resource_classes/__init__.py b/os_resource_classes/__init__.py index 0586c83..39d3d73 100644 --- a/os_resource_classes/__init__.py +++ b/os_resource_classes/__init__.py @@ -59,6 +59,10 @@ STANDARDS = [ # Standard resource class for network bandwidth ingress measured in # kilobits per second. 'NET_BW_IGR_KILOBIT_PER_SEC', + # Resource class representing an amount of dedicated CPUs for a single + # guest. A dedicated CPU is a physical processor that has been marked + # to be used for a single guest only + 'PCPU', ] # Namespace used for custom resource classes diff --git a/os_resource_classes/tests/test_os_resource_classes.py b/os_resource_classes/tests/test_os_resource_classes.py index 65f4d69..874349f 100644 --- a/os_resource_classes/tests/test_os_resource_classes.py +++ b/os_resource_classes/tests/test_os_resource_classes.py @@ -44,7 +44,7 @@ class TestOs_resource_classes(base.TestCase): of the STANDARDS list, otherwise database ids will get confused in the placement service. """ - expected_last_class = rc.NET_BW_IGR_KILOBIT_PER_SEC - expected_length = 14 + expected_last_class = rc.PCPU + expected_length = 15 self.assertEqual(expected_last_class, rc.STANDARDS[-1]) self.assertEqual(expected_length, len(rc.STANDARDS))