<div dir="ltr"><div><div>Zaid</div><div>Thanks in advance for quick response!</div><div>Removing parameter WANIPConnection (and key) from the object seems continue failing. When an nested object is part of a preset only the father object is created.. and if as the same preset try to create a brother object (no child of the first) seems to fail also.</div><div>Summarizing only one object (of each type) can be created as preset, is ok?</div><div>Thanks again!</div><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr"><font style="background-color:rgb(255,255,255)" color="#999999" size="2">STECHS - Ing. Agustin Bertamoni<br>Móvil: (+54911) 62183226<br>Av. Boyacá 372 Piso 4º Oficina 401 (C1406BHF)<br>Buenos Aires, Argentina</font></div></div></div>
<br><div class="gmail_quote">On Tue, Oct 27, 2015 at 4:02 AM, Zaid Abdulla <span dir="ltr"><<a href="mailto:zaid@genieacs.com" target="_blank">zaid@genieacs.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><u></u>




<div><div><div>On Mon, Oct 26, 2015, at 09:20 PM, Agustín Bertamoni wrote:<br></div>
</div>
<blockquote type="cite"><div dir="ltr"><div><div>Objects:<br></div>
<div> </div>
<div>{<br></div>
<div>    "_id" : "WANIPConnection",<br></div>
<div>    "WANIPConnection" : "",<br></div>
<div>    "_keys" : [ <br></div>
<div>        "WANIPConnection"<br></div>
<div>    ]<br></div>
<div>}<br></div>
<div> </div>
<div>{<br></div>
<div>    "_id" : "ConfigInternetWan",<br></div>
<div>    "Enable" : "true",<br></div>
<div>    "X_HW_SERVICELIST" : "INTERNET",<br></div>
<div>    "X_HW_VLAN" : "101",<br></div>
<div>    "AddressingType" : "DHCP",<br></div>
<div>    "X_HW_VenderClassID" : "gpon_wan",<br></div>
<div>    "_keys" : [ <br></div>
<div>        "Enable"<br></div>
<div>    ]<br></div>
<div>}<br></div>
</div>
<div> </div>
<div>It correct the preset settings and objects? Thanks in advance!<br></div>
</div>
</blockquote><div> </div>
<div>Looking at the first object, the parameter WANIPConnection shouldn't be there because it's a object and can't contain a value and thus can't be used as key.<br></div>
<div> </div>
<div>Note that creating nested object is tricky and doesn't always work using presets. I would recommend doing that through the API.<span><font color="#888888"><br></font></span></div><span><font color="#888888">
<div> </div>
<div>Zaid<br></div>
</font></span></div>

<br>_______________________________________________<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>
<br></blockquote></div><br></div></div></div>