Skip Menu |

This queue is for tickets about the TL1ng CPAN distribution.

Report information
The Basics
Id: 41055
Status: open
Priority: 0/
Queue: TL1ng

People
Owner: Nobody in particular
Requestors: Ronald.vanderPol [...] rvdp.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in:
  • 0.08
  • 0.01
  • 0.03
  • 0.06
  • 0.07
Fixed in: (no value)



Subject: multi-part response does not work?
It looks like multi-part responses are not supported. This is part of the response: "PGEFC-1-2-4::PROVPEC=NTTP01CF,CTYPE=\" GE LX [10k]/FC100 SM 1310nm LC SFP\",SNMPINDEX=285478916,PEC=NTTP01CF,REL=01,CLEI=WMOTAH1JAA,SER=EXLGJPD751590594:IS,ACT" Show quoted text
>
"Asd001A_OME1T" 08-11-19 04:11:48 M 42 COMPLD "10G-1-6::PROVPEC=NTK526LA,CTYPE=\"1xOC-192/STM-64 STS-1/HO DWDM 1538.19nm\",SNMPINDEX=285487104,PEC=NTK526LA,REL= 05 ,CLEI=WMOTBD0JAA,SER=NNTM01Q1D46W8,MDAT=2004-50,AGE=03-158-22-47,ONSC=00-124-17-43:IS,IDLE" get_resp() only returns the part up to the line with the single greater than sign. If I change the _read_msg() code into $msg !~ /^[;<]/xm I only get the second part. It does not return the complete response.
On Wed Nov 19 00:09:57 2008, rvdp wrote: Show quoted text
> It looks like multi-part responses are not supported. This is part of > the response:
<snip> Thanks for your bug report! I will try to look at this as soon as possible. In the meanwhile, could you send several sample response messages? I no longer have access to any TL1 equipment, but I can use the contents of a text file to test various parts of the code.
CC: Ronald.vanderPol [...] rvdp.org, Andree Toonk <andree.toonk [...] bc.net>
Subject: Re: [rt.cpan.org #41055] multi-part response does not work?
Date: Thu, 20 Nov 2008 00:52:57 +0100
To: "Stephen R. Scaffidi via RT" <bug-TL1ng [...] rt.cpan.org>
From: Ronald van der Pol <Ronald.vanderPol [...] rvdp.org>
On Wed, Nov 19, 2008 at 17:50:59 -0500, Stephen R. Scaffidi via RT wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=41055 > > > On Wed Nov 19 00:09:57 2008, rvdp wrote:
> > It looks like multi-part responses are not supported. This is part of > > the response:
> <snip> > > Thanks for your bug report! > > I will try to look at this as soon as possible. In the meanwhile, could > you send several sample response messages? I no longer have access to > any TL1 equipment, but I can use the contents of a text file to test > various parts of the code.
Stephen, I have attached two files with output of two commands. The first has two parts, the second has multiple parts. It is a pity that you do not have access to TL1 equipment anymore. I have Cc'ed Andree Toonk. I have written the TL1 Toolkit together with him. See http://nrg.sara.nl/TL1-Toolkit. Our intention was to put it on CPAN. However, when we noticed TL1ng I had a look at it. There are similarities and differences with our toolkit. Both can run commands on TL1 equipment. With TL1ng, the user needs to know the exact syntax. With the TL1 Toolkit we implemented some commonly used commands and provide a higher level API to the user. On the other hand I like the way you use hashes in responses. It is something we have been thinking about of doing too. I have made a TL1 Toolkit clone that uses TL1ng for connecting, sending and receiving. That's when I noticed that TL1ng does not handle multiple part responses correctly. But is mostly works. We have to decide what to do with our TL1 Toolkit. Submit it to CPAN as is or submit the clone that uses TL1ng. The latter would be an extension to TL1ng for some commonly used commands. What do you think? rvdp

Message body is not shown because sender requested not to inline it.

Message body is not shown because sender requested not to inline it.