def _check_ovs_port_integrity(self, ovs_port):
        """
        There are some cases that some para of ovs port is missing
        then the event will be discarded
        """

        ofport = ovs_port.get_ofport()
        port_type = ovs_port.get_type()

        if (ofport is None) or (0 < ofport) or (port_type is None):
            return False

        if (port_type == OvsPort.TYPE_VM) \
                and (ovs_port.get_iface_id() is None):
            return False

        return True
dataset/ETHPy150Open openstack/dragonflow/dragonflow/controller/topology.py/Topology._check_ovs_port_integrity/swapped operands of `<`