<div dir="ltr"><div>Why only the last PPP connection? Why would you want to have more than one PPP connection?</div><div><br></div><div>Here is how I do it:</div><div><br></div>First tell Genie you only want one item:<div>declare("InternetGatewayDevice.WANDevice.3.WANConnectionDevice.1.<span style="font-size:12.8px">WANPPPConnection</span>.*", {value: Date.now()}, {path: 1}); // path: 1 says only one value<br></div><div><br></div><div>Then you set the values:</div><div><div>declare("InternetGatewayDevice.WANDevice.3.WANConnectionDevice.1.WANPPPConnection.*.Username", {value: Date.now()}, {value: "someUsername"});</div><div>declare("InternetGatewayDevice.WANDevice.3.WANConnectionDevice.1.WANPPPConnection.*.Password", {value: Date.now()}, {value: "somePassword"});</div></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 5, 2017 at 6:12 AM, Marco Marino <span dir="ltr"><<a href="mailto:marino.mrc@gmail.com" target="_blank">marino.mrc@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"><div><div><div><div><span class="m_8645007323070785789gmail-long-text m_8645007323070785789gmail-param-path">Hi, I need to set the following parameter:<br>InternetGatewayDevice.<wbr>WANDevice.3.<wbr>WANConnectionDevice.1.<wbr>WANPPPConnection.1.Username<br></span></div><span class="m_8645007323070785789gmail-long-text m_8645007323070785789gmail-param-path">The problem is that I don't know a priori the index of InternetGatewayDevice.<wbr>WANDevice.X<br></span></div><span class="m_8645007323070785789gmail-long-text m_8645007323070785789gmail-param-path">Is there a way using a provision script to set *last* index of WANDevice ??<br><br></span></div><span class="m_8645007323070785789gmail-long-text m_8645007323070785789gmail-param-path">Thank you,<br></span></div><span class="m_8645007323070785789gmail-long-text m_8645007323070785789gmail-param-path">Marco<br></span></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>