<div dir="ltr"><div dir="ltr">The second path parameter tells Genie how many instances with that filter should exist in the data model. I.e., doing declare("InternetGatewayDevice.WANDevice.*.WANConnectionDevice.1.WANPPPConnection.*.PortMapping.[]", null, {path: 0}) would remove all port mapping entries for that path.</div><div dir="ltr"><br></div><div>Having two path parameters for the "1 Firmware Upgrade Image" type seems odd, but probably works because the value: Date.now() makes it so the last one "wins."</div><div><br></div><div>-dan</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 21, 2019 at 1:41 AM Jackson Sparkle <<a href="mailto:Jack@gamingkeyx.de">Jack@gamingkeyx.de</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 dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>I looked at the logs and can see that if I send the firmware through the provision, the filename is "undefined".</div><div>In the meantime I found a workaround in the mailing list.</div><div><br></div><div>I changed in the provision:</div><div>declare("Downloads.[FileType:1 Firmware Upgrade Image]", {path: 1}, {path: 1});</div><div>to</div><div>declare("Downloads.[FileType:1 Firmware Upgrade Image]", {path: 1}, {path: 2});</div><div>now it works.</div><div>Is there a reason for that? What is the "path: 2" doing?</div><div><br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr"><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 dir="ltr">Run genieacs cwmp in debug mode and look at the log file in genieacs/debug/acs_id.logĀ  Then grep for the filename and see what is different between when the file is pushed via the GUI and via your provisioning script.<div><br></div><div>-dan</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></div></div></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>