Issue Adding or Deleting Objects

Dan Morphis dan at milkcarton.com
Thu Oct 4 15:44:09 EDT 2018


Try this updated script:

// Refresh
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.*.*",
{path: Date.now()});
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.*.*",
{path: Date.now()});
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANDSLLinkConfig.*.*",
{path: Date.now()});

declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANPPPConnection",
null, {path: 1});
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANIPConnection",
null, {path: 7});
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANDSLLinkConfig",
null, {path: 7});
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANPPPConnection.[ConnectionType:IP_Routed,Name:Internet,Username:pppoeuser,Password:pppoepass]",
{path: 1}, {path: 1});

for (let i = 36; i <= 42; ++i) {
    declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANIPConnection.[ConnectionType:IP_Bridged,Name:Video_"
+ i + ",Enable:true]", {path: 1}, {path: 1});
    declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANDSLLinkConfig.[DestinationAddress:PVC:
0/" + i + ",Enable:true]", {path: 1}, {path: 1});
}


-dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20181004/a035ef42/attachment.html>


More information about the Users mailing list