Update correct instances

Sergio Fernández sergio19932 at gmail.com
Mon Oct 16 07:31:30 EDT 2017


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
CEO @ ACSdesk
https://acsdesk.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20171016/3a4130ef/attachment-0001.html>


More information about the Users mailing list