'Wrapper utility that returns a test QoS bandwidth limit rule.'

@classmethod
def create_qos_bandwidth_limit_rule(cls, policy_id, max_kbps, max_burst_kbps, direction=constants.EGRESS_DIRECTION):

    body = cls.admin_client.create_bandwidth_limit_rule(policy_id, max_kbps, max_burst_kbps, direction)
    qos_rule = body['bandwidth_limit_rule']
    cls.qos_rules.append(qos_rule)
    return qos_rule
