<div dir="ltr">Close :)<div><br></div><div><span style="font-size:12.8px">declare("</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">InternetGatewayDevice.</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">WANDevice.1.</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">WANConnectionDevice.[]", null, {path: 2}); //Tell Genie we need 2 instances</span><br style="font-size:12.8px"><span style="font-size:12.8px">declare("</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">InternetGatewayDevice.</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">WANDevice.1.</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">WANConnectionDevice.*." + VendorPrefix + "WANGponLinkConfig.[VLANIDMark:100]"</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">, {path: 1}, {path:1}); //One instance will have the value of 100</span><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">declare("</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">InternetGatewayDevice.</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">WANDevice.1.</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">WANConnectionDevice.*." + VendorPrefix + "WANGponLinkConfig.[VLANIDMark:200]"</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">, {path: 1}, {path:1}); //Another instance will have the value of 200</span><br style="font-size:12.8px"></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">The CPE is creating a new connection device because you've told it to via </span><span style="font-style:italic;font-size:12.8px">declare("</span><wbr style="font-size:12.8px"><span style="font-style:italic;font-size:12.8px">InternetGatewayDevice.</span><wbr style="font-size:12.8px"><span style="font-style:italic;font-size:12.8px">WANDevice.1.</span><wbr style="font-size:12.8px"><span style="font-size:12.8px"><i>WANConnectionDevice.[]", null, {path: 2})</i>. One thing to keep in mind is you have to stop caring about instance IDs because they can change. Care about what you want the final state of the CPE to be.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">-dan</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 4, 2017 at 2:52 AM, Sergio Fernández <span dir="ltr"><<a href="mailto:sergio19932@gmail.com" target="_blank">sergio19932@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello, <br><br>I've been trying to create a provisioning flow in order to start by only leaving 1 WAN Interface, with a fixed VLAN (that is pre-setted: for example, a VLAN with id 100 for TR069), and removing the rest of the WAN interfaces. After that is completed, I would add 2 or 3 WAN interfaces with other VLANs (for example, VLAN 200 for INTERNET, VLAN 300 for VoIP, VLAN 400 for IPTV... etc)<br><br>I would like to know the exact condition to make it work without pain. Like:<br><br><div>declare("<wbr>InternetGatewayDevice.<wbr>WANDevice.1.<wbr>WANConnectionDevice.[]", null, {path: 1});</div><div>declare("<wbr>InternetGatewayDevice.<wbr>WANDevice.1.<wbr>WANConnectionDevice.1." + VendorPrefix + "WANGponLinkConfig.VLANIDMark"<wbr>, null, {value: "100"});</div><br>(It works)<br><br>But now, how do I add another VLAN? Because the next code isn't working for me:<div><br>declare("<wbr>InternetGatewayDevice.<wbr>WANDevice.1.<wbr>WANConnectionDevice.[]", null, {path: 2});<br>declare("<wbr>InternetGatewayDevice.<wbr>WANDevice.1.<wbr>WANConnectionDevice.2." + VendorPrefix + "WANGponLinkConfig.VLANIDMark"<wbr>, null, {value: "200"});<br><br>Anyway, my CPE creates a WANConnectionDevice.5. .... and I don't know why.<br><br>Thank you so much! Sorry for "reopening" the thread, but I think the answer to Angel would be one of the keys to solve my issue.<br><br><br><br><br><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="m_-6482602495006818562gmail_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/<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 class="h5">
<br><div class="gmail_quote">2017-03-06 20:05 GMT+01:00 Zaid Abdulla <span dir="ltr"><<a href="mailto:zaid@genieacs.com" target="_blank">zaid@genieacs.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On Mon, 2017-03-06 at 17:08 +0100, Àngel Wifibytes wrote:<br>
> I'm trying to delete an instance of an object. In this case, I have a<br>
> device with 3 WANConnectionDevice preconfigurated.<br>
<br>
</span>This should help (v1.1 only): <a href="https://github.com/zaidka/genieacs/wiki/Provisions#creatingdeleting-object-instances" rel="noreferrer" target="_blank">https://github.com/zaidka/geni<wbr>eacs/wiki/P<br>
rovisions#creatingdeleting-obj<wbr>ect-instances</a><br>
<span class="m_-6482602495006818562HOEnZb"><font color="#888888"><br>
--<br>
Zaid Abdulla <<a href="mailto:zaid@genieacs.com" target="_blank">zaid@genieacs.com</a>><br>
______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.genieacs.com" target="_blank">Users@lists.genieacs.com</a><br>
<a href="http://lists.genieacs.com/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.genieacs.com/mail<wbr>man/listinfo/users</a><br>
</font></span></blockquote></div><br></div></div></div>
<br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.genieacs.com">Users@lists.genieacs.com</a><br>
<a href="http://lists.genieacs.com/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.genieacs.com/<wbr>mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>