Would anyone know the config for adding a sendary colors through cnmaestro. Do i need an insert. Or is this not possible. I would like the template not to touch the primary CC.
"colorCodeList": [ { "colorCode": ${2nd_CC=CC-HERE}, "priority": 2 }
Would anyone know the config for adding a sendary colors through cnmaestro. Do i need an insert. Or is this not possible. I would like the template not to touch the primary CC.
"colorCodeList": [ { "colorCode": ${2nd_CC=CC-HERE}, "priority": 2 }
In order to update the colorCodeList you will need to send the full array of data. It is not possible perform an action on the list to insert or delete a single element. This is true for all array-based configuration data for PMP and ePMP templates.
This means when adding a secondary color code, the original primary color code must be included in the configuration template.
{ "userParameters": { "colorCodeList": [{ "colorCode": 44, "priority": 1 }, { "colorCode": 11, "priority": 2 }, { "colorCode": 22, "priority": 3 } ] } }
I pushed this scrit with cnMaestro and the CPE doesn;t take the config. The jobs passes successfully but the values doen't change. Is there anyway to debug this?
On the device web UI in the Configuration -> cnMaestro tab enable set "cnMaestro Agent Debug Log Level" to Debug level. Then apply the template again and check the logs in Logs -> Device Agent Log for any configuration errors or warnings. This may provide some details for the failure reason.
If there aren't any configuration related errors or warnings then the template may be incorrectly formatted. If the template isn't structured correctly then the CPE would not find the color codes at all and not attempt to make any validation or changes. If you share your template here or in a private message I can check it.
We were able to solve this offline. There was a minor issue with the JSON template which may be an issue with the previous template in this thread as well. The colorCodeList array was not properly nested within the "smRadioConfig" object.
This template worked correctly:
{ "userParameters": { "smRadioConfig": { "colorCodeList": [{ "colorCode": 11, "priority": 1 }, { "colorCode": 22, "priority": 2 } ] } }, "cfgFileString": "Canopy configuration file", "cfgFileVersion": "1.0" }