Update correct instances

Sergio Fernández sergio19932 at gmail.com
Tue Oct 17 04:54:44 EDT 2017


As I have received no answer, I have been trying to get the ID of the
instances created, with no success.

I am trying with variations of this statement:

let wanid =
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*", {value:
1});
log(wanid);

logging a result of "[object Object]"
And when trying to

let wanid =
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*", {value:
1}).value[0];
log(wanid);

logging an error: faultMessage="Cannot read property '0' of undefined"

Thank you

PS. This CPE is fully configured with LibreACS, so there's no problem with
it. All the problems I've been posting to the mailing list from some weeks
back are from GenieACS itself, not about problems in the CPE, for those who
doubt.


Sergio Fernández Rubio - https://www.linkedin.com/in/sergiofdz/
(+34) 687 016 994
CEO @ ACSdesk
https://acsdesk.com

2017-10-16 13:31 GMT+02:00 Sergio Fernández <sergio19932 at gmail.com>:

> Hello, I am trying to create 4 interfaces in an ONT.
>
> This line of code is working:
>
> declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.[]", null,
> {path: 4});
>
> But it's creating these instances:
> InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*23*.WANIPConnection
> InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*24*.WANIPConnection
> InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*25*.WANIPConnection
> InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*26*.WANIPConnection
>
> So when I call this script, is not working because the Instances I am
> trying to add are 1,2,3 and 4
>
> declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.
> WANIPConnection.1.[Enable:true,"+VendorPrefix+"
> ServiceList:TR069,NATEnabled:false,X_BROADCOM_COM_VlanMuxID:3333]",
> {path: 1}, {path:1});
> declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.2.
> WANIPConnection.1.[Enable:true,"+VendorPrefix+"ServiceList:INTERNET,
> NATEnabled:false,X_BROADCOM_COM_VlanMuxID:51]", now,now);
> declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.3.
> WANIPConnection.1.[Enable:true,"+VendorPrefix+"
> ServiceList:VOIP,NATEnabled:false,X_BROADCOM_COM_VlanMuxID:52]", {path:
> 1}, {path:1});
> declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.4.
> WANIPConnection.1.[Enable:true,"+VendorPrefix+"
> ServiceList:Other,NATEnabled:false,X_BROADCOM_COM_VlanMuxID:53]", {path:
> 1}, {path:1});
>
> But these instances aren't in any order. So how should I get the interface
> numbers in my provision?
>
> PS. If I write the following, it is not working neither, because of a
> "9005 Invalid parameter name"(I see in tcpdump, it is trying to addObject
> InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.
> WANIPConnection.1.):
>
> declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.
> WANIPConnection.1.[Enable:true,"+VendorPrefix+"
> ServiceList:TR069,NATEnabled:false,X_BROADCOM_COM_VlanMuxID:3333]",
> {path: 1}, {path:1});
> declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.
> WANIPConnection.1.[Enable:true,"+VendorPrefix+"ServiceList:INTERNET,
> NATEnabled:false,X_BROADCOM_COM_VlanMuxID:51]", {path: 1}, {path:1});
> declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.
> WANIPConnection.1.[Enable:true,"+VendorPrefix+"
> ServiceList:VOIP,NATEnabled:false,X_BROADCOM_COM_VlanMuxID:52]", {path:
> 1}, {path:1});
> declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.
> WANIPConnection.1.[Enable:true,"+VendorPrefix+"
> ServiceList:Other,NATEnabled:false,X_BROADCOM_COM_VlanMuxID:53]", {path:
> 1}, {path:1});
>
> Sergio Fernández Rubio - https://www.linkedin.com/in/sergiofdz/
> (+34) 687 016 994 <+34%20687%2001%2069%2094>
> CEO @ ACSdesk
> https://acsdesk.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20171017/a912da68/attachment-0001.html>


More information about the Users mailing list