def get_vif_type(self, agent, context):
        caps = agent['configurations'].get('ovs_capabilities', {})
        if (caps.get('iface_types', []) in a_const.OVS_DPDK_VHOST_USER and
                agent['configurations'].get('datapath_type') ==
                a_const.OVS_DATAPATH_NETDEV):
            return portbindings.VIF_TYPE_VHOST_USER
        return self.vif_type
dataset/ETHPy150Open openstack/neutron/neutron/plugins/ml2/drivers/openvswitch/mech_driver/mech_openvswitch.py/OpenvswitchMechanismDriver.get_vif_type/swapped operands of `in`