Hello:
I really dont end to understand how to create new index, I try to use the example on the doc but is not clear for me: when i add the * , i get a fault of loop. if i let without * , it wont create anything.
Can give me a hand to understand how to create a new entry without generate numbers that are not consecutive? i dont know anymore were to find a example of this or more clear explanation.
Thanks
// Ensure that all other instances are deleted
declare(“Device.Services.X_MM_RemoteAccess.TrustedDomain.[]”, null, {path: 0});
// Add the entries we care about
let entries = declare(“Device.Services.X_MM_RemoteAccess.TrustedDomainNumberOfEntries”, {value: now}).value[0];
log(‘ENTRIES’, {are: entries});
declare(“Device.Services.X_MM_RemoteAccess.TrustedDomain.*”, {path: 1}, { path: (entries+2) });
declare(“Device.Services.X_MM_RemoteAccess.TrustedDomain.1.Enable”, {value: now}, {value: true});
declare(“Device.Services.X_MM_RemoteAccess.TrustedDomain.1.IPAddress”, {value: now}, {value: “192.168.0.0”});
declare(“Device.Services.X_MM_RemoteAccess.TrustedDomain.1.PrefixLength”, {value: now}, {value: “16”});
declare(“Device.Services.X_MM_RemoteAccess.TrustedDomain.2.Enable”, {value: now}, {value: true});
declare(“Device.Services.X_MM_RemoteAccess.TrustedDomain.2.IPAddress”, {value: now}, {value: “10.0.0.0”});
declare(“Device.Services.X_MM_RemoteAccess.TrustedDomain.2.PrefixLength”, {value: now}, {value: “8”});
commit();