Create more than one object in a preset
Agustín Bertamoni
abertamoni at stechs.com.ar
Mon Oct 5 18:25:16 EDT 2015
Hi,
I'm trying to create and configure more than one object in the same preset
and appears to be broken. I've seen old comments that this was not working,
is that correct?
*My Preset:*
{
"_id" : "InitWans",
"weight" : 20,
"precondition" :
"{\"summary.productClass\":\"HG8245H\",\"_tags\":\"InitManagementDone\"}",
"configurations" : [
{
"type" : "add_object",
"name" :
"InternetGatewayDevice.WANDevice.1.WANConnectionDevice",
"object" : "CreateWan"
},
{
"type" : "add_object",
"name" :
"InternetGatewayDevice.WANDevice.1.WANConnectionDevice.2.WANIPConnection",
"object" : "ConfigInternetWan"
},
{
"type" : "add_object",
"name" :
"InternetGatewayDevice.WANDevice.1.WANConnectionDevice",
"object" : "CreateWan"
},
{
"type" : "add_object",
"name" :
"InternetGatewayDevice.WANDevice.1.WANConnectionDevice.3.WANIPConnection",
"object" : "ConfigVoipWan"
},
{
"type" : "add_tag",
"tag" : "InitWansDone"
},
{
"type" : "delete_tag",
"tag" : "InitManagementDone"
}
]
}
*Objects*:
{
"_id" : "CreateWan",
"WANIPConnection" : "true",
"_keys" : [
"WANIPConnection"
]
}
{
"_id" : "ConfigVoipWan",
"enable" : "true",
"X_HW_SERVICELIST" : "VOIP",
"X_HW_VLAN" : "102",
"AddressingType" : "DHCP",
"X_HW_VenderClassID" : "gpon_voip",
"_keys" : [
"enable",
"X_HW_SERVICELIST",
"X_HW_VLAN",
"AddressingType",
"X_HW_VenderClassID"
]
}
{
"_id" : "ConfigInternetWan",
"enable" : "true",
"X_HW_SERVICELIST" : "INTERNET",
"X_HW_VLAN" : "101",
"AddressingType" : "DHCP",
"X_HW_VenderClassID" : "gpon_wan",
"_keys" : [
"enable",
"X_HW_SERVICELIST",
"X_HW_VLAN",
"AddressingType",
"X_HW_VenderClassID"
]
}
Thanks in advance!
BR
STECHS - Ing. Agustin Bertamoni
Móvil: (+54911) 62183226
Av. Boyacá 372 Piso 4º Oficina 401 (C1406BHF)
Buenos Aires, Argentina
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20151005/97484abd/attachment.html>
More information about the Users
mailing list