/* CLI command to set the optical paths mask.  */
int32_t cn0503_ratmask_set(struct cn0503_dev *dev, uint8_t *arg)
/* CLI command to set the optical paths mask.  */
int32_t cn0503_ratmask_set(struct cn0503_dev *dev, uint8_t *arg)
{
	uint8_t *error, check_val;
	check_val = strtol((char *)arg, (char **)&error, 16);
	if(error == arg)
		return FAILURE;
	dev->ratmask = check_val;
	cli_write_string(dev->cli_handler, (uint8_t *)"RESP: RATMASK");
	cli_write_string(dev->cli_handler, (uint8_t *)" ");
	cli_write_string(dev->cli_handler, arg);
	cli_write_string(dev->cli_handler, (uint8_t *)"\n");
	return SUCCESS;
}