<div dir="ltr">I'd read through the documentation on the wiki again. This is all outlined in there. Do not hard-code instance ids, you can never be assured they will always be the same.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jan 18, 2019 at 1:41 AM sisir tiwari <<a href="mailto:sisir@vianet.com.np">sisir@vianet.com.np</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-US"><div class="gmail-m_2661156880242964490WordSection1"><p class="MsoNormal">Hi all,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I am  having issue with  provisioning script to create new pppoe connection.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">My script is as follows:<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span style="color:rgb(0,112,192)">const now = Date.now();<u></u><u></u></span></p><p class="MsoNormal"><span style="color:rgb(0,112,192)">declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANPPPConnection.*.*", {path: Date.now()});<u></u><u></u></span></p><p class="MsoNormal"><span style="color:rgb(0,112,192)">declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.X_CT-COM_WANGponLinkConfig", {path: Date.now()});<u></u><u></u></span></p><p class="MsoNormal"><span style="color:rgb(0,112,192)">declare ("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.4.WANPPPConnection", null, {path: 1});<u></u><u></u></span></p><p class="MsoNormal"><span style="color:rgb(0,112,192)">declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.4.WANPPPConnection.[ConnectionType:IP_Routed,X_D0542D_ServiceList:INTERNET,TransportType:PPPoE,Username:hello12,Password:hello12,NATEnabled:true]", {path: 1}, {path: 1});<u></u><u></u></span></p><p class="MsoNormal"><span style="color:rgb(0,112,192)">declare ("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.4.WANPPPConnection.1.Enable", {value: now}, {value: true});<u></u><u></u></span></p><p class="MsoNormal"><span style="color:rgb(0,112,192)">declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.4.X_CT-COM_WANGponLinkConfig.Enable", {value: now}, {value: true});<u></u><u></u></span></p><p class="MsoNormal"><span style="color:rgb(0,112,192)">declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.4.X_CT-COM_WANGponLinkConfig.VLANIDMark", {value: now}, {value: "1234"});<u></u><u></u></span></p><p class="MsoNormal"><span style="color:rgb(0,112,192)">commit(); <u></u><u></u></span></p><p class="MsoNormal"><span style="color:rgb(0,112,192)"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:black">This only refreshes the </span><span style="color:rgb(0,112,192)">InternetGatewayDevice.WANDevice.1.WANConnectionDevice.* </span><span style="color:black">tree but doesn’t set the parameters value.<u></u><u></u></span></p><p class="MsoNormal"><span style="color:black">I guess this is due to full chain doesn’t exist in GenieACS's cache of the device object model.<u></u><u></u></span></p><p class="MsoNormal"><span style="color:black"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:black">So how could I create new pppoe connection as below since I already have three WANConnectionDevice as “InternetGatewayDevice.WANDevice.1.WANConnectionDevice.(1,2,3).WANIPConnection.1.*”<u></u><u></u></span></p><p class="MsoNormal"><span style="color:black"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:black">InternetGatewayDevice.WANDevice.1.WANConnectionDevice.4.WANPPPConnection.1.Enable<u></u><u></u></span></p><p class="MsoNormal"><span style="color:black">InternetGatewayDevice.WANDevice.1.WANConnectionDevice.4.WANPPPConnection.1.Username <u></u><u></u></span></p><p class="MsoNormal"><span style="color:black">InternetGatewayDevice.WANDevice.1.WANConnectionDevice.4.WANPPPConnection.1.Password<u></u><u></u></span></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Best Regards,<u></u><u></u></p><p class="MsoNormal" style="line-height:105%"><b><span lang="EN-GB" style="color:red;letter-spacing:1.7pt">SISIR TIWARI</span></b><b><span lang="EN-GB" style="font-size:10pt;line-height:105%;color:red;letter-spacing:1.7pt"><u></u><u></u></span></b></p><p class="MsoNormal" style="line-height:105%"><b><span lang="EN-GB" style="font-size:10pt;line-height:105%;font-family:"Baskerville Old Face",serif;color:rgb(118,113,113)">(NOC)<u></u><u></u></span></b></p><p class="MsoNormal" style="line-height:105%"><span style="color:rgb(47,84,150)"><img width="338" height="3" id="gmail-m_2661156880242964490Picture_x0020_1" src="cid:168631829d34cff311" alt="cid:image003.png@01D34DA2.ED69F020"></span><b><span lang="EN-GB" style="font-family:"Baskerville Old Face",serif;color:rgb(118,113,113)"><u></u><u></u></span></b></p><p class="MsoNormal" style="line-height:105%"><span style="font-size:10.5pt;line-height:105%;color:red;background:white">T:</span><span style="color:rgb(47,84,150)"> </span><span lang="EN-GB" style="color:rgb(47,84,150)">(+977) 01 4217555 </span><b><span lang="EN-GB" style="font-family:"Baskerville Old Face",serif;color:rgb(118,113,113)"><u></u><u></u></span></b></p><p class="MsoNormal"><span lang="EN-GB" style="color:red">A</span><span lang="EN-GB" style="color:rgb(47,84,150)">: Jawalakhel, Lalitpur</span><span lang="EN-GB" style="color:black"><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-GB" style="color:red">W:</span><span lang="EN-GB" style="color:rgb(47,84,150)"> <a href="http://www.vianet.com.np/" target="_blank"><span style="color:blue">www.vianet.com.np</span></a><u></u><u></u></span></p><p class="MsoNormal"><span style="color:rgb(149,150,153)"><img border="0" width="225" height="61" id="gmail-m_2661156880242964490Picture_x0020_14" src="cid:168631829d35b16b22" alt="cid:image003.png@01D34CCB.90EDC510"></span><span style="color:rgb(149,150,153)"><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-GB" style="font-size:8pt;font-family:"Arial Narrow",sans-serif;color:red"><u></u> <u></u></span></p><p class="MsoNormal"><a href="https://www.facebook.com/vianetnepal/" target="_blank"><span style="color:rgb(5,99,193);text-decoration:none"><img border="0" width="50" height="50" id="gmail-m_2661156880242964490Picture_x0020_3" src="cid:168631829d3692e333" alt="fb"></span></a><a href="https://twitter.com/VianetFTTH" target="_blank"><span style="color:rgb(5,99,193);text-decoration:none"><img border="0" width="50" height="50" id="gmail-m_2661156880242964490Picture_x0020_4" src="cid:168631829d37745b44" alt="twitter"></span></a><a href="https://www.instagram.com/vianetftth/" target="_blank"><span style="color:rgb(5,99,193);text-decoration:none"><img border="0" width="50" height="50" id="gmail-m_2661156880242964490Picture_x0020_5" src="cid:168631829d3855d355" alt="insa"></span></a><a href="https://www.youtube.com/channel/UCkw5lCX7AE2ujAhJici0TIQ/videos" target="_blank"><span style="color:rgb(5,99,193);text-decoration:none"><img border="0" width="50" height="50" id="gmail-m_2661156880242964490Picture_x0020_6" src="cid:168631829d39374b66" alt="youtube"></span></a><span style="color:rgb(106,106,106)"><u></u><u></u></span></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p></div></div>_______________________________________________<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/mailman/listinfo/users</a><br>
</blockquote></div>