def add_qos(self, d: FlowMatch.Direction, qos_info: QosInfo, cleanup_rule=None, parent=None, skip_filter=False) -> int:
    LOG.debug('add QoS: %s', qos_info)
    qid = self._id_manager.allocate_idx()
    self.create_class_async(d, qos_info, qid, parent, skip_filter, cleanup_rule)
    LOG.debug('assigned qid: %d', qid)
    return qid
def add_qos(self, d: FlowMatch.Direction, qos_info: QosInfo, cleanup_rule=None, parent=None, skip_filter=False) -> int:
    LOG.debug('add QoS: %s', qos_info)
    qid = self._id_manager.allocate_idx()
    self.create_class_async(d, qos_info, qid, parent, skip_filter, cleanup_rule)
    LOG.debug('assigned qid: %d', qid)
    return qid