'Return the agent\'s vhost-user socket path for a given port'

@staticmethod
def agent_vhu_sockpath(agent, port_id):

    sockdir = agent['configurations'].get('vhostuser_socket_dir', a_const.VHOST_USER_SOCKET_DIR)
    sock_name = (constants.VHOST_USER_DEVICE_PREFIX + port_id)[:14]
    return os.path.join(sockdir, sock_name)
