<div dir="ltr">As I have received no answer, I have been trying to get the ID of the instances created, with no success.<br><br>I am trying with variations of this statement:<br><br><div><div>let wanid = declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*", {value: 1});</div><div>log(wanid);</div></div><div><br></div><div>logging a result of "[object Object]"<br>And when trying to </div><div><br></div><div><div>let wanid = declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*", {value: 1}).value[0];</div><div>log(wanid);</div></div><div><br></div><div>logging an error: faultMessage="Cannot read property '0' of undefined"<br><br>Thank you<br><br>PS. This CPE is fully configured with LibreACS, so there's no problem with it. All the problems I've been posting to the mailing list from some weeks back are from GenieACS itself, not about problems in the CPE, for those who doubt.</div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Sergio Fernández Rubio - <a href="https://www.linkedin.com/in/sergiofdz/" target="_blank">https://www.linkedin.com/in/sergiofdz/<br></a></div><div dir="ltr"><div><span>(+34) 687 016 994</span><br>CEO @ ACSdesk<br></div><div><a href="https://acsdesk.com" target="_blank">https://acsdesk.com</a><br></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">2017-10-16 13:31 GMT+02:00 Sergio Fernández <span dir="ltr"><<a href="mailto:sergio19932@gmail.com" target="_blank">sergio19932@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello, I am trying to create 4 interfaces in an ONT.<br><br>This line of code is working:<br><br>declare("<wbr>InternetGatewayDevice.<wbr>WANDevice.1.<wbr>WANConnectionDevice.[]", null, {path: 4});<br><br>But it's creating these instances:<br><span style="color:rgb(70,60,0);font-family:"Lucida Sans Unicode","Lucida Grande",Arial,sans-serif;font-size:13px;white-space:nowrap">InternetGatewayDevice.<wbr>WANDevice.1.<wbr>WANConnectionDevice.<b>23</b>.<wbr>WANIPConnection<br></span><span style="color:rgb(70,60,0);font-family:"Lucida Sans Unicode","Lucida Grande",Arial,sans-serif;font-size:13px;white-space:nowrap">InternetGatewayDevice.<wbr>WANDevice.1.<wbr>WANConnectionDevice.<b>24</b>.<wbr>WANIPConnection</span><br><span style="color:rgb(70,60,0);font-family:"Lucida Sans Unicode","Lucida Grande",Arial,sans-serif;font-size:13px;white-space:nowrap">InternetGatewayDevice.<wbr>WANDevice.1.<wbr>WANConnectionDevice.<b>25</b>.<wbr>WANIPConnection</span><div><span style="color:rgb(70,60,0);font-family:"Lucida Sans Unicode","Lucida Grande",Arial,sans-serif;font-size:13px;white-space:nowrap">InternetGatewayDevice.<wbr>WANDevice.1.<wbr>WANConnectionDevice.<b>26</b>.<wbr>WANIPConnection</span></div><div><font color="#463c00" face="Lucida Sans Unicode, Lucida Grande, Arial, sans-serif"><span style="white-space:nowrap"><br></span></font></div><div><font color="#463c00" face="Lucida Sans Unicode, Lucida Grande, Arial, sans-serif"><span style="white-space:nowrap">So when I call this script, is not working because the Instances I am trying to add are 1,2,3 and 4</span><br><br><div><span style="white-space:nowrap">declare("<wbr>InternetGatewayDevice.<wbr>WANDevice.1.<wbr>WANConnectionDevice.1.<wbr>WANIPConnection.1.[Enable:<wbr>true,"+VendorPrefix+"<wbr>ServiceList:TR069,NATEnabled:<wbr>false,X_BROADCOM_COM_<wbr>VlanMuxID:3333]", {path: 1}, {path:1});</span></div><div><span style="white-space:nowrap">declare("<wbr>InternetGatewayDevice.<wbr>WANDevice.1.<wbr>WANConnectionDevice.2.<wbr>WANIPConnection.1.[Enable:<wbr>true,"+VendorPrefix+"<wbr>ServiceList:INTERNET,<wbr>NATEnabled:false,X_BROADCOM_<wbr>COM_VlanMuxID:51]", now,now);</span></div><div><span style="white-space:nowrap">declare("<wbr>InternetGatewayDevice.<wbr>WANDevice.1.<wbr>WANConnectionDevice.3.<wbr>WANIPConnection.1.[Enable:<wbr>true,"+VendorPrefix+"<wbr>ServiceList:VOIP,NATEnabled:<wbr>false,X_BROADCOM_COM_<wbr>VlanMuxID:52]", {path: 1}, {path:1});</span></div><div><span style="white-space:nowrap">declare("<wbr>InternetGatewayDevice.<wbr>WANDevice.1.<wbr>WANConnectionDevice.4.<wbr>WANIPConnection.1.[Enable:<wbr>true,"+VendorPrefix+"<wbr>ServiceList:Other,NATEnabled:<wbr>false,X_BROADCOM_COM_<wbr>VlanMuxID:53]", {path: 1}, {path:1});</span></div></font><div><br></div><div>But these instances aren't in any order. So how should I get the interface numbers in my provision?<br><br>PS. If I write the following, it is not working neither, because of a "9005 Invalid parameter name"(I see in tcpdump, it is trying to addObject  InternetGatewayDevice.<wbr>WANDevice.1.<wbr>WANConnectionDevice.1.<wbr>WANIPConnection.1.):</div><div><br><div>declare("<wbr>InternetGatewayDevice.<wbr>WANDevice.1.<wbr>WANConnectionDevice.*.<wbr>WANIPConnection.1.[Enable:<wbr>true,"+VendorPrefix+"<wbr>ServiceList:TR069,NATEnabled:<wbr>false,X_BROADCOM_COM_<wbr>VlanMuxID:3333]", {path: 1}, {path:1});</div><div>declare("<wbr>InternetGatewayDevice.<wbr>WANDevice.1.<wbr>WANConnectionDevice.*.<wbr>WANIPConnection.1.[Enable:<wbr>true,"+VendorPrefix+"<wbr>ServiceList:INTERNET,<wbr>NATEnabled:false,X_BROADCOM_<wbr>COM_VlanMuxID:51]", {path: 1}, {path:1});</div><div>declare("<wbr>InternetGatewayDevice.<wbr>WANDevice.1.<wbr>WANConnectionDevice.*.<wbr>WANIPConnection.1.[Enable:<wbr>true,"+VendorPrefix+"<wbr>ServiceList:VOIP,NATEnabled:<wbr>false,X_BROADCOM_COM_<wbr>VlanMuxID:52]", {path: 1}, {path:1});</div><div>declare("<wbr>InternetGatewayDevice.<wbr>WANDevice.1.<wbr>WANConnectionDevice.*.<wbr>WANIPConnection.1.[Enable:<wbr>true,"+VendorPrefix+"<wbr>ServiceList:Other,NATEnabled:<wbr>false,X_BROADCOM_COM_<wbr>VlanMuxID:53]", {path: 1}, {path:1});</div></div><br clear="all"><div><div class="m_899189005528162510gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Sergio Fernández Rubio - <a href="https://www.linkedin.com/in/sergiofdz/" target="_blank">https://www.linkedin.com/in/<wbr>sergiofdz/<br></a></div><div dir="ltr"><div><span><a href="tel:+34%20687%2001%2069%2094" value="+34687016994" target="_blank">(+34) 687 016 994</a></span><br>CEO @ ACSdesk<br></div><div><a href="https://acsdesk.com" target="_blank">https://acsdesk.com</a><br></div></div></div></div></div></div></div></div>
</div></div>
</blockquote></div><br></div>