def get_vif_details(self, agent, context):
        if (agent['configurations'].get('datapath_type') !=
                a_const.OVS_DATAPATH_NETDEV):
            return self.vif_details
        caps = agent['configurations'].get('ovs_capabilities', {})
        if a_const.OVS_DPDK_VHOST_USER in caps.get('iface_types', []):
            sock_path = self.agent_vhu_sockpath(agent, context.current['id'])
            return {
                portbindings.CAP_PORT_FILTER: False,
                portbindings.VHOST_USER_MODE:
                    portbindings.VHOST_USER_MODE_CLIENT,
                portbindings.VHOST_USER_OVS_PLUG: True,
                portbindings.VHOST_USER_SOCKET: sock_path
            }
        return self.vif_details
dataset/ETHPy150Open openstack/neutron/neutron/plugins/ml2/drivers/openvswitch/mech_driver/mech_openvswitch.py/OpenvswitchMechanismDriver.get_vif_details/original