Incrementing interfaces

Dan Morphis dan at milkcarton.com
Tue Oct 10 16:31:27 EDT 2017


I'm honestly not sure. I just checked my code, and this works fine for me:

declare("InternetGatewayDevice.WANDevice.*.WANConnectionDevice.1.WANPPPConnection.*.PortMapping.[]",
null, {path: 0}); //Delete all port forwards that don't match the next
declares

declare('InternetGatewayDevice.WANDevice.*.WANConnectionDevice.1.WANPPPConnection.*.PortMapping.[InternalClient:192.168.1.100,PortMappingDescription:test,PortMappingProtocol:TCP,PortMappingEnabled:1,RemoteHost:,InternalPort:8088,X_BROADCOM_COM_InternalPortEnd:8088,ExternalPort:8088,ExternalPortEndRange:8088]',
{path:1},
{path: 1});


Try doing this:
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.[]",
null, {path: 0});
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.*.[Name:Interface1]",
{path:1}, {path: 1});
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.*.[Name:Interface2]",
{path:1}, {path: 1});

That will force everything to be consistent.

-dan


On Tue, Oct 10, 2017 at 11:44 AM, Margerita <polanski.michal.mail at gmail.com>
wrote:

> Dan,
>
> it doesn't. 57 seconds of delay is becouse of how I do capture. TR69
> starts in 54s and ends in 58s.
> There is everything OK with CPE.
>
> This is working:
> declare ("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WA
> NIPConnection.1.Name", null, {value: "Interface1"});
> declare ("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WA
> NIPConnection.2.Name", null, {value: "Interface2"});
>
> And this is not (9005 response):
> declare ("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.
> WANIPConnection.*.[Name:Interface1]", {path:1}, {path: 1});
> declare ("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.
> WANIPConnection.*.[Name:Interface2]", {path:1}, {path: 1});
>
> I showed you CPE log where you can see:
>
> tr69c:57.270:fObjectName:660:
> name=ObjectName, ttype=3, value=InternetGatewayDevice.WA
> NDevice.1.WANConnectionDevice.1.WANIPConnection.1.
> tr69c:57.270:xmlData:445:xmlDATA tag=ObjectName
> data=InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.
> found at level 4
>
> as on wireshark log where
> InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.
> was also visible, instead of InternetGatewayDevice.WANDevice.1.
> WANConnectionDevice.1.WANIPConnection.1.Name
> so why do you think, that it could be CPE problem? I don't get it..
>
> br,
>
> --
> Michal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20171010/9b925c66/attachment.html>


More information about the Users mailing list