'Get QoS policy rules.
:param context: neutron api request context
:type context: neutron.context.Context
:param rule_cls: the rule object class
:type rule_cls: a class from the rule_object (qos.objects.rule) module
:param policy_id: the id of the QosPolicy for which to get rules
:type policy_id: str uuid
:returns: QoS policy rule objects meeting the search criteria'

@db_base_plugin_common.filter_fields
@db_base_plugin_common.convert_result_to_dict
def get_policy_rules(self, context, rule_cls, policy_id, filters=None, fields=None, sorts=None, limit=None, marker=None, page_reverse=False):

    with db_api.autonested_transaction(context.session):
        self._get_policy_obj(context, policy_id)
        filters = (filters or dict())
        filters[qos_consts.QOS_POLICY_ID] = policy_id
        pager = base_obj.Pager(sorts, limit, page_reverse, marker)
        return rule_cls.get_objects(context, _pager=pager, **filters)
