Numerical objects list in array

Hi all,

With a type of device, I get numerical object id that are not continuous because one of those object value increment at each boot for whatever reason and I would like to get those value in an array for provisioning.

The only idea that came to my mind was to use an external script that will query the GenieACS API to get all value under the object and exopod it to get the numerical idea list.

I was wondering if anybody had a better idea. Maybe a GACS feature I missed.


Can you provide an example of the parameter that are changing?

Their are several because the WAN interfaces are a stack of several parameters in different objects but, as an example, for the VLAN config:

1 and 2 already exist in the base config
My OLT push an instance to the ONU creating 4 as my management VLAN
I add 4-6 for 3 different services (voice, IPTV and Internet) via GenieACS
Since 3 is pushed by the OLT and isn’t persistent, at next reboot, it will become 7, then 8, then 9, etc.

So, I would like to create an array of {i} values that would return something like
vlanIndex = [1,2,4,5,6,9]

P.S. The device don’t seems to delete those instance when requested by GenieACS. By example:
declare("Device.Ethernet.VLANTermination.*",null, {path:6});
won’t delete 7, 8, 9, etc.