]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Add bandwidth_limit rule type constant
authorGal Sagie <gal.sagie@huawei.com>
Wed, 1 Jul 2015 16:15:55 +0000 (19:15 +0300)
committerIhar Hrachyshka <ihrachys@redhat.com>
Thu, 2 Jul 2015 03:49:07 +0000 (03:49 +0000)
Change-Id: I7228b3a288848833947271a0966ca415bfaa07c4

neutron/extensions/qos.py

index cda11511579f6a018561b073b4f6acac8cfa6d15..3979ccc8aa8d1022314783ad817609cc25fbb5d1 100644 (file)
@@ -26,7 +26,8 @@ from neutron import manager
 from neutron.plugins.common import constants
 from neutron.services import service_base
 
-VALID_RULE_TYPES = ['bandwidth_limit']
+RULE_TYPE_BANDWIDTH_LIMIT = 'bandwidth_limit'
+VALID_RULE_TYPES = [RULE_TYPE_BANDWIDTH_LIMIT]
 
 # Attribute Map
 QOS_RULE_COMMON_FIELDS = {