def _make_qos_filter_dict_for_agent(self, qos_filter):
        qos_filter_dict = {'prio': qos_filter.prio,
                           'src_addr': qos_filter.src_addr,
                           'dst_addr': qos_filter.dst_addr}
        if qos_filter.protocol:
            qos_filter_dict['protocol'] = qos_filter.protocol
        if qos_filter.src_port:
            qos_filter_dict['src_port'] = qos_filter.src_port
        if qos_filter.dst_port:
            qos_filter_dict['dst_port'] = qos_filter.dst_port
        return qos_filter_dict