Instance ids
Dan Morphis
dan at milkcarton.com
Mon Mar 20 18:42:16 EDT 2017
Awesome! What other keys are there? There is obviously also .value
I tried:
log('Keys: ' + Object.keys(p).join(', '));
and nothing is output to the log.
On Mon, Mar 20, 2017 at 2:29 PM, Zaid Abdulla <zaid at genieacs.com> wrote:
> On Mon, 2017-03-20 at 14:22 -0800, Dan Morphis wrote:
> > In a provisioning script, is there anyway to get the instance ID that
> > was created? Use case is for some models of CPEs we deploy, I need to
> > set the .Interface to be
> > 'InternetGatewayDevice.WANDevice.1.WANConnectionDevice.2.WANIPConnect
> > ion.3' (or whatever the instance ID is. Other models I can get away
> > with 'atm1.1'
>
> The object(s) returned from declare() should have a path property:
>
> let p = declare(...);
> log(p.path);
>
> --
> Zaid Abdulla <zaid at genieacs.com>
> _______________________________________________
> Users mailing list
> Users at lists.genieacs.com
> http://lists.genieacs.com/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20170320/f74af06f/attachment.html>
More information about the Users
mailing list