tft_notify_controller_change_strategy

Function

This API is called by MindCluster to notify MindIO TFT of the repair policy to be executed.

The repair policy must be within the scope of the available repair policies negotiated by MindCluster and MindIO TFT.

Format

mindio_ttp.controller_ttp.tft_notify_controller_change_strategy(strategy: str, params: str = "")

Parameters

Parameter

Mandatory/Optional

Description

Value

strategy

Mandatory

Repair policy notified to MindIO TFT.

The value is of the string type. The following repair policies are supported:

  • retry
  • downgrade
  • upgrade
  • recover
  • dump
  • continue
  • migration
  • exit

params

  • Mandatory for downgrade training
  • Optional for other options

Downgrade training parameter.

The value is of string type and the default value is an empty string ("").

Return Value

  • 0: API call succeeded.
  • 1: API call failed.