def same_qos_config(self, d: FlowMatch.Direction, qid1: int, qid2: int) -> bool:
    intf = (self._uplink if (d == FlowMatch.UPLINK) else self._downlink)
    config1 = TrafficClass.get_class_rate(intf, qid1)
    config2 = TrafficClass.get_class_rate(intf, qid2)
    return (config1 == config2)
def same_qos_config(self, d: FlowMatch.Direction, qid1: int, qid2: int) -> bool:
    intf = (self._uplink if (d == FlowMatch.UPLINK) else self._downlink)
    config1 = TrafficClass.get_class_rate(intf, qid1)
    config2 = TrafficClass.get_class_rate(intf, qid2)
    return (config1 == config2)