<div dir="ltr"><div><div>You really need to look at the logs on the CPE. Its frustrating that CPEs won't (usually) tell you what failed and why in the response message. Thats all hidden away on the device log on the CPE.</div></div><div><br></div><div>-dan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 5, 2017 at 12:03 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">Thank you so much, Dan (as always), now I understand a little bit more about the best way to do it.<br><br>In the end, it is causing a fault on my provision, but I think that is another problem.<br><br>I think it could be solved assigning some more parameters to each of the WANs. For example, let's say I want the WAN with VLAN 100 to be configured IP_Routed (The parameter is, in this case, <i style="margin:0px;padding:0px;border:0px;font-variant-numeric:inherit;font-stretch:inherit;font-size:13px;line-height:inherit;font-family:"Lucida Sans Unicode","Lucida Grande",Arial,sans-serif;vertical-align:baseline;color:rgb(0,47,47)">InternetGatewayDevice.<wbr>WANDevice.1.<wbr>WANConnectionDevice.1.<wbr>WANIPConnection.1.<wbr>ConnectionType</i>). As it is not a sibling, how to assign it to the VLAN 100 and not to the VLAN 200?<br><br>I am trying right now something like this:<span class=""><br><br><div>declare("<wbr>InternetGatewayDevice.<wbr>WANDevice.1.<wbr>WANConnectionDevice.[]", null, {path: 2});</div></span><span class=""><div>declare("<wbr>InternetGatewayDevice.<wbr>WANDevice.1.<wbr>WANConnectionDevice.*." + VendorPrefix + "WANGponLinkConfig.[<wbr>VLANIDMark:100]", {path: 1}, {path:1});</div></span><div>declare("<wbr>InternetGatewayDevice.<wbr>WANDevice.1.<wbr>WANConnectionDevice.[" + VendorPrefix + "WANGponLinkConfig.VLANIDMark:<wbr>100].WANIPConnection.*.[<wbr>ConnectionType:IP_Routed]", {path: 1}, {path:1});</div><span class=""><div>declare("<wbr>InternetGatewayDevice.<wbr>WANDevice.1.<wbr>WANConnectionDevice.*." + VendorPrefix + "WANGponLinkConfig.[<wbr>VLANIDMark:200]", {path: 1}, {path:1});</div></span><div>declare("<wbr>InternetGatewayDevice.<wbr>WANDevice.1.<wbr>WANConnectionDevice.[" + VendorPrefix + "WANGponLinkConfig.VLANIDMark:<wbr>200].WANIPConnection.*.[<wbr>ConnectionType:IP_Routed]", {path: 1}, {path:1});</div><br>But it is still faulting. This is what I am getting in the debugging log of the CPE (In bold, the important bits):<br><br><div># RESPONSE Thu Oct 05 2017 09:43:22 GMT+0200 (CEST)</div><div>{"Server":"GenieACS/1.1.1","<wbr>SOAPServer":"GenieACS/1.1.1","<wbr>Content-Type":"text/xml; charset=\"utf-8\""}</div><div><?xml version="1.0" encoding="UTF-8"?></div><div><soap-env:Envelope xmlns:soap-enc="<a href="http://schemas.xmlsoap.org/soap/encoding/" target="_blank">http://<wbr>schemas.xmlsoap.org/soap/<wbr>encoding/</a>" xmlns:soap-env="<a href="http://schemas.xmlsoap.org/soap/envelope/" target="_blank">http://<wbr>schemas.xmlsoap.org/soap/<wbr>envelope/</a>" xmlns:xsd="<a href="http://www.w3.org/2001/XMLSchema" target="_blank">http://www.w3.org/<wbr>2001/XMLSchema</a>" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/<wbr>2001/XMLSchema-instance</a>" xmlns:cwmp="urn:dslforum-org:<wbr>cwmp-1-2"><soap-env:Header><<wbr>cwmp:ID soap-env:mustUnderstand="1"><wbr>15eeb7d2bf2100</cwmp:ID></<wbr>soap-env:Header><soap-env:<wbr>Body><cwmp:<b>AddObject</b>><<wbr>ObjectName><b>InternetGatewayDevi<wbr>ce.WANDevice.1.<wbr>WANConnectionDevice.1.X_CT-<wbr>COM_WANGponLinkConfig.</b></<wbr>ObjectName><ParameterKey/></<wbr>cwmp:AddObject></soap-env:<wbr>Body></soap-env:Envelope></div><div><br></div><div># REQUEST Thu Oct 05 2017 09:43:22 GMT+0200 (CEST)</div><div>{"host":"<a href="http://10.60.0.20:7547" target="_blank">10.60.0.20:7547</a>","<wbr>user-agent":"BCM_TR69_CPE_04_<wbr>00","connection":"keep-alive",<wbr>"soapaction":"","cookie":"<wbr>session=0b7cc0fcc91af6b1","<wbr>content-type":"text/xml","<wbr>content-length":"793"}</div><div><SOAP-ENV:Envelope</div><div>    xmlns:SOAP-ENV="<a href="http://schemas.xmlsoap.org/soap/envelope/" target="_blank">http://<wbr>schemas.xmlsoap.org/soap/<wbr>envelope/</a>"</div><div>    xmlns:SOAP-ENC="<a href="http://schemas.xmlsoap.org/soap/encoding/" target="_blank">http://<wbr>schemas.xmlsoap.org/soap/<wbr>encoding/</a>"</div><div>    xmlns:xsd="<a href="http://www.w3.org/2001/XMLSchema" target="_blank">http://www.w3.org/<wbr>2001/XMLSchema</a>"</div><div>    xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/<wbr>2001/XMLSchema-instance</a>"</div><div>    xmlns:cwmp="urn:dslforum-org:<wbr>cwmp-1-2"></div><div>    <SOAP-ENV:Header></div><div>      <cwmp:ID SOAP-ENV:mustUnderstand="1"><wbr>15eeb7d2bf2100</cwmp:ID></div><div>    </SOAP-ENV:Header></div><div>    <SOAP-ENV:Body></div><div>      <SOAP-ENV:Fault></div><div>        <faultcode>Client</faultcode></div><div>        <faultstring>CWMP fault</faultstring></div><div>          <detail></div><div>            <cwmp:<b>Fault</b>></div><div>              <FaultCode>9003</FaultCode></div><div>              <FaultString><b>Invalid arguments</b></FaultString></div><div>            </cwmp:Fault></div><div>          </detail></div><div>      </SOAP-ENV:Fault></div><div>    </SOAP-ENV:Body></div><div></SOAP-ENV:Envelope></div><div><br></div>Thank you very much!</div><div class="gmail_extra"><span class=""><br clear="all"><div><div class="m_-8698539029035942117gmail_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>
<br></span><div><div class="h5"><div class="gmail_quote">2017-10-04 20:05 GMT+02:00 Dan Morphis <span dir="ltr"><<a href="mailto:dan@milkcarton.com" target="_blank">dan@milkcarton.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Close :)<div><br></div><div><span style="font-size:12.8px">declare("</span><span style="font-size:12.8px">InternetGatewayDevice<wbr>.</span><span style="font-size:12.8px">WANDevice.1.</span><span style="font-size:12.8px">WANConnectionDevi<wbr>ce.[]", null, {path: 2}); //Tell Genie we need 2 instances</span><br style="font-size:12.8px"><span style="font-size:12.8px">declare("</span><span style="font-size:12.8px">InternetGatewayDevice<wbr>.</span><span style="font-size:12.8px">WANDevice.1.</span><span style="font-size:12.8px">WANConnectionDevi<wbr>ce.*." + VendorPrefix + "WANGponLinkConfig.[VLANIDMark<wbr>:100]"</span><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><span style="font-size:12.8px">InternetGatewayDevice<wbr>.</span><span style="font-size:12.8px">WANDevice.1.</span><span style="font-size:12.8px">WANConnectionDevi<wbr>ce.*." + VendorPrefix + "WANGponLinkConfig.[VLANIDMark<wbr>:200]"</span><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><span style="font-style:italic;font-size:12.8px">InternetGatewayDe<wbr>vice.</span><span style="font-style:italic;font-size:12.8px">WANDevice.1.</span><span style="font-size:12.8px"><i>WANConnection<wbr>Device.[]", 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><span class="m_-8698539029035942117HOEnZb"><font color="#888888"><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">-dan</span></div></font></span></div><div class="m_-8698539029035942117HOEnZb"><div class="m_-8698539029035942117h5"><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("InternetGatewayDevice<wbr>.WANDevice.1.WANConnectionDevi<wbr>ce.[]", null, {path: 1});</div><div>declare("InternetGatewayDevice<wbr>.WANDevice.1.WANConnectionDevi<wbr>ce.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("InternetGatewayDevice<wbr>.WANDevice.1.WANConnectionDevi<wbr>ce.[]", null, {path: 2});<br>declare("InternetGatewayDevice<wbr>.WANDevice.1.WANConnectionDevi<wbr>ce.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_-8698539029035942117m_7267903483986136328m_-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="m_-8698539029035942117m_7267903483986136328h5">
<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_-8698539029035942117m_7267903483986136328m_-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" 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>
<br></blockquote></div><br></div>
</div></div><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>
<br></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>