Hi,
I can’t create new WAN instances in v1.2.3 on bootstrap event with this old provision script used in v1.1:
const now = Date.now();
//Create WAN instances
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*", null, {path: 3});
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.2.WANIPConnection.*", {path: now}, {path: 1});
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.3.WANIPConnection.*", {path: now}, {path: 1});
This same script used in v1.1 works without problem but in this new version not. If create one previous preset (with higher weight) of type “refresh” and arguments “InternetGatewayDevice.WANDevice”, the script works but i don’t want to create 2 presets to do the same work.
It’s possible to do this (path refresh) from the same provision script without refreshing path in another preset?
I were tried to add a refresh path at the beggining of the provision script as follows but doesn’t works:
const now = Date.now();
//Refresh path
declare("InternetGatewayDevice.WANDevice", {path: now, value: now});
//Create instances
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*", null, {path: 3});
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.2.WANIPConnection.*", {path: now}, {path: 1});
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.3.WANIPConnection.*", {path: now}, {path: 1});
Thanks!