I have two virtual parameters, one for the username of PPPoE and one for the password.
When I edit these two parameters from the device and then I commit the two pending tasks I have a fault of “Too many commits”, if I click “retry” all works. Why?
Okay, now I understand the requirements. To set the un/pw from the device params page, yes this approach works.
But I would ask why you are manually setting the un/pw? This should be something that is entirely automatic. In our environment, the CPE comes online, we check the state the CPE should be in, configure it as such and the account is online. If the customer factory defaults the CPE, recovery happens automatically.
As to why you get too many commit iterations error, specify the time param:
You are using wildecard (*) to provision values. I am not sure if that is possible because I never thought of doing that. I suspect that you get too many commit irritations because your declare statements walk entire trees of parameters.
The number of parameters is limited to 32 by default. You can set an environment variable to increase this limit, but I would not recommend to solve your problem by doing so.
It works the second time because your newly set parameters are probably skipped. The declare statement is pretty smart about that. Hence the limits are not reached then.
You probably want to change the wild cards for numbers. Most probably just number just 1. Or perhaps use a for-loop limited to the numbers you need for what you want.
I explained to my colleagues that there is the possibility of auto provision and now they want to do it this way.
But how do I get the pppoe to be pushed back?
I don’t understand…I need to write for example a CSV with customerCode; name; serialNumber; PPoE?
With this the PPPoE where is it get from?
SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse ()
at IncomingMessage. (/usr/lib/node_modules/genieacs/config/ext/cpe-config.js:35:31)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:139:11)
at process._tickCallback (internal/process/next_tick.js:181:9)