Add packet rate related resource classes
Added: * NET_PACKET_RATE_KILOPACKET_PER_SEC * NET_PACKET_RATE_EGR_KILOPACKET_PER_SEC * NET_PACKET_RATE_IGR_KILOPACKET_PER_SEC blueprint: qos-minimum-guaranteed-packet-rate Change-Id: I1c035cf73cf73ad3fe0535d7ba5f1243fb816bea
This commit is contained in:
@@ -72,6 +72,12 @@ STANDARDS = [
|
|||||||
'FPGA',
|
'FPGA',
|
||||||
# A physical GPU for compute offload.
|
# A physical GPU for compute offload.
|
||||||
'PGPU',
|
'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
|
# 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
|
of the STANDARDS list, otherwise database ids will get confused
|
||||||
in the placement service.
|
in the placement service.
|
||||||
"""
|
"""
|
||||||
expected_last_class = rc.PGPU
|
expected_last_class = rc.NET_PACKET_RATE_IGR_KILOPACKET_PER_SEC
|
||||||
expected_length = 18
|
expected_length = 21
|
||||||
self.assertEqual(expected_last_class, rc.STANDARDS[-1])
|
self.assertEqual(expected_last_class, rc.STANDARDS[-1])
|
||||||
self.assertEqual(expected_length, len(rc.STANDARDS))
|
self.assertEqual(expected_length, len(rc.STANDARDS))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user