Merge "Add packet rate related resource classes"

This commit is contained in:
Zuul 2021-07-14 09:34:18 +00:00 committed by Gerrit Code Review
commit 357bd404d8
2 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -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))