<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Baskerville Old Face";
        panose-1:2 2 6 2 8 5 5 2 3 3;}
@font-face
        {font-family:"Arial Narrow";
        panose-1:2 11 6 6 2 2 2 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Hi all,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I am  having issue with  provisioning script to create new pppoe connection.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>My script is as follows:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='color:#0070C0'>const now = Date.now();<o:p></o:p></span></p><p class=MsoNormal><span style='color:#0070C0'>declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANPPPConnection.*.*", {path: Date.now()});<o:p></o:p></span></p><p class=MsoNormal><span style='color:#0070C0'>declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.X_CT-COM_WANGponLinkConfig", {path: Date.now()});<o:p></o:p></span></p><p class=MsoNormal><span style='color:#0070C0'>declare ("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.4.WANPPPConnection", null, {path: 1});<o:p></o:p></span></p><p class=MsoNormal><span style='color:#0070C0'>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});<o:p></o:p></span></p><p class=MsoNormal><span style='color:#0070C0'>declare ("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.4.WANPPPConnection.1.Enable", {value: now}, {value: true});<o:p></o:p></span></p><p class=MsoNormal><span style='color:#0070C0'>declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.4.X_CT-COM_WANGponLinkConfig.Enable", {value: now}, {value: true});<o:p></o:p></span></p><p class=MsoNormal><span style='color:#0070C0'>declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.4.X_CT-COM_WANGponLinkConfig.VLANIDMark", {value: now}, {value: "1234"});<o:p></o:p></span></p><p class=MsoNormal><span style='color:#0070C0'>commit(); <o:p></o:p></span></p><p class=MsoNormal><span style='color:#0070C0'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:black'>This only refreshes the </span><span style='color:#0070C0'>InternetGatewayDevice.WANDevice.1.WANConnectionDevice.* </span><span style='color:black'>tree but doesn’t set the parameters value.<o:p></o:p></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.<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'><o:p> </o:p></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.*”<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:black'>InternetGatewayDevice.WANDevice.1.WANConnectionDevice.4.WANPPPConnection.1.Enable<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>InternetGatewayDevice.WANDevice.1.WANConnectionDevice.4.WANPPPConnection.1.Username <o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>InternetGatewayDevice.WANDevice.1.WANConnectionDevice.4.WANPPPConnection.1.Password<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Best Regards,<o:p></o:p></p><p class=MsoNormal style='line-height:105%'><b><span lang=EN-GB style='color:red;letter-spacing:1.7pt;mso-fareast-language:EN-GB'>SISIR TIWARI</span></b><b><span lang=EN-GB style='font-size:10.0pt;line-height:105%;color:red;letter-spacing:1.7pt;mso-fareast-language:EN-GB'><o:p></o:p></span></b></p><p class=MsoNormal style='line-height:105%'><b><span lang=EN-GB style='font-size:10.0pt;line-height:105%;font-family:"Baskerville Old Face",serif;color:#767171;mso-fareast-language:EN-GB'>(NOC)<o:p></o:p></span></b></p><p class=MsoNormal style='line-height:105%'><span style='color:#2F5496'><img width=338 height=3 id="Picture_x0020_1" src="cid:image001.png@01D4AF45.FC43E820" alt="cid:image003.png@01D34DA2.ED69F020"></span><b><span lang=EN-GB style='font-family:"Baskerville Old Face",serif;color:#767171;mso-fareast-language:EN-GB'><o:p></o:p></span></b></p><p class=MsoNormal style='line-height:105%'><span style='font-size:10.5pt;line-height:105%;color:red;background:white;mso-fareast-language:EN-GB'>T:</span><span style='color:#2F5496;mso-fareast-language:EN-GB'> </span><span lang=EN-GB style='color:#2F5496;mso-fareast-language:EN-GB'>(+977) 01 4217555 </span><b><span lang=EN-GB style='font-family:"Baskerville Old Face",serif;color:#767171;mso-fareast-language:EN-GB'><o:p></o:p></span></b></p><p class=MsoNormal><span lang=EN-GB style='color:red;mso-fareast-language:EN-GB'>A</span><span lang=EN-GB style='color:#2F5496;mso-fareast-language:EN-GB'>: Jawalakhel, Lalitpur</span><span lang=EN-GB style='color:black;mso-fareast-language:EN-GB'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='color:red;mso-fareast-language:EN-GB'>W:</span><span lang=EN-GB style='color:#2F5496;mso-fareast-language:EN-GB'> <a href="http://www.vianet.com.np/"><span style='color:blue'>www.vianet.com.np</span></a><o:p></o:p></span></p><p class=MsoNormal><span style='color:#959699'><img border=0 width=225 height=61 id="Picture_x0020_14" src="cid:image002.png@01D4AF45.FC43E820" alt="cid:image003.png@01D34CCB.90EDC510"></span><span style='color:#959699;mso-fareast-language:EN-GB'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:8.0pt;font-family:"Arial Narrow",sans-serif;color:red;mso-fareast-language:EN-GB'><o:p> </o:p></span></p><p class=MsoNormal><a href="https://www.facebook.com/vianetnepal/"><span style='color:#0563C1;text-decoration:none'><img border=0 width=50 height=50 id="Picture_x0020_3" src="cid:image003.png@01D4AF45.FC43E820" alt=fb></span></a><a href="https://twitter.com/VianetFTTH"><span style='color:#0563C1;text-decoration:none'><img border=0 width=50 height=50 id="Picture_x0020_4" src="cid:image004.png@01D4AF45.FC43E820" alt=twitter></span></a><a href="https://www.instagram.com/vianetftth/"><span style='color:#0563C1;text-decoration:none'><img border=0 width=50 height=50 id="Picture_x0020_5" src="cid:image005.png@01D4AF45.FC43E820" alt=insa></span></a><a href="https://www.youtube.com/channel/UCkw5lCX7AE2ujAhJici0TIQ/videos"><span style='color:#0563C1;text-decoration:none'><img border=0 width=50 height=50 id="Picture_x0020_6" src="cid:image006.png@01D4AF45.FC43E820" alt=youtube></span></a><span style='color:#6A6A6A;mso-fareast-language:EN-GB'><o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>