<div dir="ltr"><div dir="ltr">It looks like your config is mostly there, except the WANIPConnection instances and the WANPPPConnection instance. For the WANPPPConnection you are presuming the instance number will always be 1, that might not always be the case. For WANIPConnection you are repeatedly changing the connection name because you are specifying the instance number.<div>This:</div><div><font face="monospace, monospace">declare ("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANIPConnection.1.[ConnectionType:IP_Bridged,Name:Video_36,Enable:true]", {path: 1}, {path: 1});</font><br></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Should be this:</font></div><div><div><font face="monospace, monospace">declare ("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANIPConnection.[ConnectionType:IP_Bridged,Name:Video_36,Enable:true]", {path: 1}, {path: 1});</font><br></div><br class="gmail-Apple-interchange-newline"></div><div><br></div><div>Fixed config:</div><div><pre style="color:rgb(0,0,0);font-family:"DejaVu Sans Mono";font-size:9.1pt">declare (<span style="color:rgb(0,128,0);font-weight:bold">"InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANIPConnection.[ConnectionType:IP_Bridged,Name:Video_36,Enable:true]"</span>, {<span style="color:rgb(102,14,122);font-weight:bold">path</span>: <span style="color:rgb(0,0,255)">1</span>}, {<span style="color:rgb(102,14,122);font-weight:bold">path</span>: <span style="color:rgb(0,0,255)">1</span>});<br>declare (<span style="color:rgb(0,128,0);font-weight:bold">"InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANDSLLinkConfig.[DestinationAddress:PVC: 0/36,Enable:true]"</span>, {<span style="color:rgb(102,14,122);font-weight:bold">path</span>: <span style="color:rgb(0,0,255)">1</span>}, {<span style="color:rgb(102,14,122);font-weight:bold">path</span>: <span style="color:rgb(0,0,255)">1</span>});<br>declare (<span style="color:rgb(0,128,0);font-weight:bold">"InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANIPConnection.[ConnectionType:IP_Bridged,Name:Video_37,Enable:true]"</span>, {<span style="color:rgb(102,14,122);font-weight:bold">path</span>: <span style="color:rgb(0,0,255)">1</span>}, {<span style="color:rgb(102,14,122);font-weight:bold">path</span>: <span style="color:rgb(0,0,255)">1</span>});<br>declare (<span style="color:rgb(0,128,0);font-weight:bold">"InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANDSLLinkConfig.[DestinationAddress:PVC: 0/37,Enable:true]"</span>, {<span style="color:rgb(102,14,122);font-weight:bold">path</span>: <span style="color:rgb(0,0,255)">1</span>}, {<span style="color:rgb(102,14,122);font-weight:bold">path</span>: <span style="color:rgb(0,0,255)">1</span>});<br>declare (<span style="color:rgb(0,128,0);font-weight:bold">"InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANIPConnection.[ConnectionType:IP_Bridged,Name:Video_38,Enable:true]"</span>, {<span style="color:rgb(102,14,122);font-weight:bold">path</span>: <span style="color:rgb(0,0,255)">1</span>}, {<span style="color:rgb(102,14,122);font-weight:bold">path</span>: <span style="color:rgb(0,0,255)">1</span>});<br>declare (<span style="color:rgb(0,128,0);font-weight:bold">"InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANDSLLinkConfig.[DestinationAddress:PVC: 0/38,Enable:true]"</span>, {<span style="color:rgb(102,14,122);font-weight:bold">path</span>: <span style="color:rgb(0,0,255)">1</span>}, {<span style="color:rgb(102,14,122);font-weight:bold">path</span>: <span style="color:rgb(0,0,255)">1</span>});<br>declare (<span style="color:rgb(0,128,0);font-weight:bold">"InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANIPConnection.[ConnectionType:IP_Bridged,Name:Video_39,Enable:true]"</span>, {<span style="color:rgb(102,14,122);font-weight:bold">path</span>: <span style="color:rgb(0,0,255)">1</span>}, {<span style="color:rgb(102,14,122);font-weight:bold">path</span>: <span style="color:rgb(0,0,255)">1</span>});<br>declare (<span style="color:rgb(0,128,0);font-weight:bold">"InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANDSLLinkConfig.[DestinationAddress:PVC: 0/39,Enable:true]"</span>, {<span style="color:rgb(102,14,122);font-weight:bold">path</span>: <span style="color:rgb(0,0,255)">1</span>}, {<span style="color:rgb(102,14,122);font-weight:bold">path</span>: <span style="color:rgb(0,0,255)">1</span>});<br>declare (<span style="color:rgb(0,128,0);font-weight:bold">"InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANIPConnection.[ConnectionType:IP_Bridged,Name:Video_40,Enable:true]"</span>, {<span style="color:rgb(102,14,122);font-weight:bold">path</span>: <span style="color:rgb(0,0,255)">1</span>}, {<span style="color:rgb(102,14,122);font-weight:bold">path</span>: <span style="color:rgb(0,0,255)">1</span>});<br>declare (<span style="color:rgb(0,128,0);font-weight:bold">"InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANDSLLinkConfig.[DestinationAddress:PVC: 0/40,Enable:true]"</span>, {<span style="color:rgb(102,14,122);font-weight:bold">path</span>: <span style="color:rgb(0,0,255)">1</span>}, {<span style="color:rgb(102,14,122);font-weight:bold">path</span>: <span style="color:rgb(0,0,255)">1</span>});<br>declare (<span style="color:rgb(0,128,0);font-weight:bold">"InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANIPConnection.[ConnectionType:IP_Bridged,Name:Video_41,Enable:true]"</span>, {<span style="color:rgb(102,14,122);font-weight:bold">path</span>: <span style="color:rgb(0,0,255)">1</span>}, {<span style="color:rgb(102,14,122);font-weight:bold">path</span>: <span style="color:rgb(0,0,255)">1</span>});<br>declare (<span style="color:rgb(0,128,0);font-weight:bold">"InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANDSLLinkConfig.[DestinationAddress:PVC: 0/41,Enable:true]"</span>, {<span style="color:rgb(102,14,122);font-weight:bold">path</span>: <span style="color:rgb(0,0,255)">1</span>}, {<span style="color:rgb(102,14,122);font-weight:bold">path</span>: <span style="color:rgb(0,0,255)">1</span>});<br>declare (<span style="color:rgb(0,128,0);font-weight:bold">"InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANIPConnection.[ConnectionType:IP_Bridged,Name:Video_42,Enable:true]"</span>, {<span style="color:rgb(102,14,122);font-weight:bold">path</span>: <span style="color:rgb(0,0,255)">1</span>}, {<span style="color:rgb(102,14,122);font-weight:bold">path</span>: <span style="color:rgb(0,0,255)">1</span>});<br>declare (<span style="color:rgb(0,128,0);font-weight:bold">"InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANDSLLinkConfig.[DestinationAddress:PVC: 0/42,Enable:true]"</span>, {<span style="color:rgb(102,14,122);font-weight:bold">path</span>: <span style="color:rgb(0,0,255)">1</span>}, {<span style="color:rgb(102,14,122);font-weight:bold">path</span>: <span style="color:rgb(0,0,255)">1</span>});</pre></div><div><br></div><div>Or simplified:</div><div><pre style="color:rgb(0,0,0);font-family:"DejaVu Sans Mono";font-size:9.1pt"><pre style="font-family:"DejaVu Sans Mono";font-size:9.1pt">declare (<span style="color:rgb(0,128,0);font-weight:bold">"InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANPPPConnection"</span>, <span style="color:rgb(0,0,128);font-weight:bold">null</span>, {<span style="color:rgb(102,14,122);font-weight:bold">path</span>: <span style="color:rgb(0,0,255)">1</span>});<br>declare (<span style="color:rgb(0,128,0);font-weight:bold">"InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANIPConnection"</span>, <span style="color:rgb(0,0,128);font-weight:bold">null</span>, {<span style="color:rgb(102,14,122);font-weight:bold">path</span>: <span style="color:rgb(0,0,255)">7</span>});<br>declare (<span style="color:rgb(0,128,0);font-weight:bold">"InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANDSLLinkConfig"</span>, <span style="color:rgb(0,0,128);font-weight:bold">null</span>, {<span style="color:rgb(102,14,122);font-weight:bold">path</span>: <span style="color:rgb(0,0,255)">7</span>});<br>declare (<span style="color:rgb(0,128,0);font-weight:bold">"InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANPPPConnection.[ConnectionType:IP_Routed,Name:Internet,Username:pppoeuser,Password:pppoepass]"</span>, {<span style="color:rgb(102,14,122);font-weight:bold">path</span>: <span style="color:rgb(0,0,255)">1</span>}, {<span style="color:rgb(102,14,122);font-weight:bold">path</span>: <span style="color:rgb(0,0,255)">1</span>});<br><br><span style="color:rgb(0,0,128);font-weight:bold">for </span>(<span style="color:rgb(0,0,128);font-weight:bold">let </span><span style="color:rgb(102,14,122);font-weight:bold;font-style:italic">i </span>= <span style="color:rgb(0,0,255)">36</span>; <span style="color:rgb(102,14,122);font-weight:bold;font-style:italic">i </span><= <span style="color:rgb(0,0,255)">42</span>; ++<span style="color:rgb(102,14,122);font-weight:bold;font-style:italic">i</span>) {<br>    declare (<span style="color:rgb(0,128,0);font-weight:bold">"InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANIPConnection.[ConnectionType:IP_Bridged,Name:Video_" </span>+ <span style="color:rgb(102,14,122);font-weight:bold;font-style:italic">i </span>+ <span style="color:rgb(0,128,0);font-weight:bold">",Enable:true]"</span>, {<span style="color:rgb(102,14,122);font-weight:bold">path</span>: <span style="color:rgb(0,0,255)">1</span>}, {<span style="color:rgb(102,14,122);font-weight:bold">path</span>: <span style="color:rgb(0,0,255)">1</span>});<br>    declare (<span style="color:rgb(0,128,0);font-weight:bold">"InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANDSLLinkConfig.[DestinationAddress:PVC: 0/" </span>+ <span style="color:rgb(102,14,122);font-weight:bold;font-style:italic">i </span>+ <span style="color:rgb(0,128,0);font-weight:bold">",Enable:true]"</span>, {<span style="color:rgb(102,14,122);font-weight:bold">path</span>: <span style="color:rgb(0,0,255)">1</span>}, {<span style="color:rgb(102,14,122);font-weight:bold">path</span>: <span style="color:rgb(0,0,255)">1</span>});<br>}</pre></pre></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
</blockquote></div></div>