Instance ids

Zaid Abdulla zaid at genieacs.com
Mon Mar 20 18:29:09 EDT 2017


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>


More information about the Users mailing list