Provisioning scripts

Zaid Abdulla zaid at genieacs.com
Mon Mar 13 17:21:49 EDT 2017


On Wed, 2017-03-08 at 10:29 -0900, Dan Morphis wrote:
> How about something like this:
>  let instance =
> declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANP
> PPConnection.*", null, {path: 1});
> instance.Name = {value: "Internet", _timestamp: Date.now()};
> instance.NATEnabled = {value: true, _timestamp: Date.now()};

That won't work because it needs to know the parameters you intend to
access (e.g. NATEnabled) before the declare call returns in order to
assign getters and setters.

-- 
Zaid Abdulla <zaid at genieacs.com>


More information about the Users mailing list