loaddishcfgMid
- The LoadDishCfg command applies the Dish VCC configuration to the specified dishes using the provided JSON input and CSP Master device.
Central Node provides an API for the LoadDishCfg workflow.
The input JSON must conform to the schema: https://schema.skao.int/ska-mid-cbf-initsysparam/1.0
The Central Node accepts the LoadDishCfg command with a JSON input that specifies the Dish VCC paths for the CSP Master and K-values for dish IDs.
- The Central Node accepts the command if:
CSP master/controller is in admin mode ONLINEand its state is DevState.OFF.
The Input JSON is validated as below, and Command is ‘Rejected’ with exception message if they are not met :-
JSON should not be empty or malformed
The JSON must contain interface, tm_data_sources and tm_data_filepath with valid values and syntax.
If the command execution fails, subsequent commands on Subarrays will be rejected.
Partial success for setting K-values is allowed. However, if the command fails on the CSP Master leaf node, the command is treated as failed.
The command execution involves below key operations :-
Checking that the CSP Master is in the required state and admin mode.
Checking that all specified dishes are available.
If the command is successful on the CSP Master leaf node and at least one dish, it is treated as successful.
If the command fails on the CSP Master leaf node, it is treated as unsuccessful.
The Central Node monitors the progress of the command using:
Long running command results
Events from K-value validation and CSP Master leaf node Dish VCC validation.
The DishVccValidationStatus attribute provides the current status of Dish VCC validation.
The isDishVccConfigSet attribute indicates whether the command(AssignResources, ReleaseResources, On, etc) is allowed to execute on TMC.
Example input JSON:
{ "interface": "https://schema.skao.int/ska-mid-cbf-initsysparam/1.0", "tm_data_sources": [ "car://gitlab.com/ska-telescope/ska-tmc/ska-tmc-simulators?main#tmdata" ], "tm_data_filepath": "instrument/dishid_vcc_map_configuration/ska-mid-cbf-system-parameters-mkt.json" }