Create nested WAN object in preset

Zaid Abdulla zaid at genieacs.com
Tue Oct 27 03:02:55 EDT 2015


On Mon, Oct 26, 2015, at 09:20 PM, Agustín Bertamoni wrote:
> Objects:
>
> {    "_id" : "WANIPConnection",    "WANIPConnection" : "",     "_keys"
> : [        "WANIPConnection"    ] }
>
> {    "_id" : "ConfigInternetWan",    "Enable" : "true",
> "X_HW_SERVICELIST" : "INTERNET",    "X_HW_VLAN" : "101",
> "AddressingType" : "DHCP",    "X_HW_VenderClassID" : "gpon_wan",
> "_keys" : [        "Enable"    ] }
>
> It correct the preset settings and objects? Thanks in advance!

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.

Note that creating nested object is tricky and doesn't always work using
presets. I would recommend doing that through the API.

Zaid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20151027/54af166f/attachment.html>


More information about the Users mailing list