# we capture the API function call, and just pass
# the rule type as a parameter removing lots of
# future code duplication when we have more rules.
+ @db_base_plugin_common.convert_result_to_dict
def create_policy_bandwidth_limit_rule(self, context, policy_id,
bandwidth_limit_rule):
- #TODO(QoS): avoid creation of severan bandwidth limit rules
- # in the future we need an inter-rule validation
- # mechanism to verify all created rules will
- # play well together.
# validate that we have access to the policy
policy = self._get_policy_obj(context, policy_id)
rule = rule_object.QosBandwidthLimitRule(