AW: Get path of an interface instance for traffic shaping

Michael Neumann mn at
Thu Nov 16 03:33:11 EST 2017


thx Zaid - I think there was a typo - but this example is working perfect.

let p = declare("InternetGatewayDevice.WANDevice.6.WANConnectionDevice.[X_CT-COM_WANEponLinkConfig.VLANIDMark:303]", {path:}, {path: 1});

Produces that log output:

[INFO] 0cb912-968380FESH-0cb9120129af: Script: PROVISON TEST STARTED
[INFO] 0cb912-968380FESH-0cb9120129af: Script: InternetGatewayDevice.WANDevice.6.WANConnectionDevice.4
[INFO] 0cb912-968380FESH-0cb9120129af: Script: PROVISON TEST FINISHED

-----Ursprüngliche Nachricht-----
Von: Users [mailto:users-bounces at] Im Auftrag von Zaid Abdulla
Gesendet: Donnerstag, 16. November 2017 09:16
An: Community support for GenieACS users <users at>
Betreff: Re: Get path of an interface instance for traffic shaping

On Wed, 2017-11-15 at 08:14 +0000, Michael Neumann wrote:
> I create an Interface for Internet like that:
> declare("InternetGatewayDevice.WANDevice.6.WANConnectionDevice.[
> VLANIDMark:303]",{path: now}, {path: 1});
> For traffic shaping I need the full path of the interface:
> declare("InternetGatewayDevice.QueueManagement.Queue.1.QueueInterface
> ", null, {value:
> "InternetGatewayDevice.WANDevice.6.WANConnectionDevice.3"});
> So I need here the instance number of the WANConnectionDevice. In that 
> case the 3. Is there a way to get this inside the provision? Or only 
> over a external script with the api?

Use the "path" property:

  let p = declare(somePath1, {path: now}, {path: 1});
  declare(somePath2, null, {value: somePath1.path});

Zaid Abdulla <zaid at>
Users mailing list
Users at

More information about the Users mailing list