Merge "Add packet rate related resource classes"
This commit is contained in:
commit
357bd404d8
|
@ -72,6 +72,12 @@ STANDARDS = [
|
|||
'FPGA',
|
||||
# A physical GPU for compute offload.
|
||||
'PGPU',
|
||||
# Direction aware and direcitonless resource classes for the network
|
||||
# packet rate measured in kilopackets per second. See
|
||||
# https://specs.openstack.org/openstack/nova-specs/specs/xena/approved/qos-minimum-guaranteed-packet-rate.html
|
||||
'NET_PACKET_RATE_KILOPACKET_PER_SEC',
|
||||
'NET_PACKET_RATE_EGR_KILOPACKET_PER_SEC',
|
||||
'NET_PACKET_RATE_IGR_KILOPACKET_PER_SEC',
|
||||
]
|
||||
|
||||
# Namespace used for custom resource classes
|
||||
|
|
|
@ -44,8 +44,8 @@ class TestOs_resource_classes(base.TestCase):
|
|||
of the STANDARDS list, otherwise database ids will get confused
|
||||
in the placement service.
|
||||
"""
|
||||
expected_last_class = rc.PGPU
|
||||
expected_length = 18
|
||||
expected_last_class = rc.NET_PACKET_RATE_IGR_KILOPACKET_PER_SEC
|
||||
expected_length = 21
|
||||
self.assertEqual(expected_last_class, rc.STANDARDS[-1])
|
||||
self.assertEqual(expected_length, len(rc.STANDARDS))
|
||||
|
||||
|
|
Loading…
Reference in New Issue