Issue Adding or Deleting Objects
Dan Morphis
dan at milkcarton.com
Thu Oct 4 14:49:55 EDT 2018
It looks like your config is mostly there, except the WANIPConnection
instances and the WANPPPConnection instance. For the WANPPPConnection you
are presuming the instance number will always be 1, that might not always
be the case. For WANIPConnection you are repeatedly changing the connection
name because you are specifying the instance number.
This:
declare
("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANIPConnection.1.[ConnectionType:IP_Bridged,Name:Video_36,Enable:true]",
{path: 1}, {path: 1});
Should be this:
declare
("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANIPConnection.[ConnectionType:IP_Bridged,Name:Video_36,Enable:true]",
{path: 1}, {path: 1});
Fixed config:
declare ("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANIPConnection.[ConnectionType:IP_Bridged,Name:Video_36,Enable:true]",
{path: 1}, {path: 1});
declare ("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANDSLLinkConfig.[DestinationAddress:PVC:
0/36,Enable:true]", {path: 1}, {path: 1});
declare ("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANIPConnection.[ConnectionType:IP_Bridged,Name:Video_37,Enable:true]",
{path: 1}, {path: 1});
declare ("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANDSLLinkConfig.[DestinationAddress:PVC:
0/37,Enable:true]", {path: 1}, {path: 1});
declare ("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANIPConnection.[ConnectionType:IP_Bridged,Name:Video_38,Enable:true]",
{path: 1}, {path: 1});
declare ("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANDSLLinkConfig.[DestinationAddress:PVC:
0/38,Enable:true]", {path: 1}, {path: 1});
declare ("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANIPConnection.[ConnectionType:IP_Bridged,Name:Video_39,Enable:true]",
{path: 1}, {path: 1});
declare ("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANDSLLinkConfig.[DestinationAddress:PVC:
0/39,Enable:true]", {path: 1}, {path: 1});
declare ("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANIPConnection.[ConnectionType:IP_Bridged,Name:Video_40,Enable:true]",
{path: 1}, {path: 1});
declare ("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANDSLLinkConfig.[DestinationAddress:PVC:
0/40,Enable:true]", {path: 1}, {path: 1});
declare ("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANIPConnection.[ConnectionType:IP_Bridged,Name:Video_41,Enable:true]",
{path: 1}, {path: 1});
declare ("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANDSLLinkConfig.[DestinationAddress:PVC:
0/41,Enable:true]", {path: 1}, {path: 1});
declare ("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANIPConnection.[ConnectionType:IP_Bridged,Name:Video_42,Enable:true]",
{path: 1}, {path: 1});
declare ("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANDSLLinkConfig.[DestinationAddress:PVC:
0/42,Enable:true]", {path: 1}, {path: 1});
Or simplified:
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});
}
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20181004/c222cbff/attachment.html>
More information about the Users
mailing list