New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests.py failed. #10
Comments
Hello! Could you please:
Cheers, |
routers = [CiscoRouter(host='202.249.25.1', user='YyYyYy', password='XxXxXx', asn=4717)]
sfc-c7200-gate.ai3.net#terminal length 0 Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd Cisco IOS Software, 7200 Software (C7200-ADVIPSERVICESK9-M), Version 12.4(9)T1, RELEASE SOFTWARE (fc2) ROM: System Bootstrap, Version 12.2(8r)B, RELEASE SOFTWARE (fc1) sfc-c7200-gate.ai3.net uptime is 17 weeks, 6 days, 14 hours, 45 minutes This product contains cryptographic features and is subject to United A summary of U.S. laws governing Cisco cryptographic products may be found at: If you require further assistance please contact us by sending email to Cisco 7206VXR (NPE-G1) processor (revision A) with 983040K/65536K bytes of memory. thanks! |
i put also on pastebin: http://pastebin.com/LygXmmQY |
Oh yes, now I got it. I'll try to fix the problem today... It seems that in your case as a hotfix it would be sufficient to just ignore the unrecognized line with the IPv6 address. But in the general case it is possible to announce IPv4 prefixes over IPv6 BGP session (running in IPv4 address family config). Right? So I have to anticipate both IPv4 and IPv6 addresses in the neighbor table for both address families... |
Fix Cisco parsing of show bgp ipv4/6 unicast sum when the opposite address family peer is used. I.e. this: sfc-c7200-gate.ai3.net#show bgp ipv4 unicast summary <cut> BGP activity 2403473/2329339 prefixes, 9040108/8863755 paths, scan interval 60 secs Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd 2001:D30:101:1::11 4 4717 0 0 0 0 0 never Active 202.249.24.4 4 4717 0 0 0 0 0 never Active 202.249.24.36 4 4717 0 0 0 0 0 never Active Fixing issue #10 .
Finally fixed. Can you please re-test? |
OK: Test running command 0 on router 0 with parameters:[] The above is a description of an error in a Python program, formatted Traceback (most recent call last): hmm strange. it's still cant parse. |
Yes, it seems there was another problem with line breaks. Could you please re-test with the latest patch fa12f97 ? |
looks good!OK: Test running command 0 on router 0 with parameters:[] ***** Results ***** |
Thanks... Just closing old issue. |
Traceback (most recent call last):
File "tests.py", line 289, in <module>
runTest(testULGAction(routerid=0,commandid=0,sessionid=None,maxtimes=10,interval=5,**{}))
File "tests.py", line 86, in testULGAction
if(re.compile("refresh",re.M).search(u.renderULGResult(sessionid=sessionid))):
File "/usr/home/dikshie/public_html/ulg/ulg.py", line 618, in renderULGResult
result_text = session.getDecoratedResult(self.decorator_helper,session.getRange(),session.isFinished())
File "/usr/home/dikshie/public_html/ulg/ulg.py", line 167, in getDecoratedResult
dr = self.getCommand().decorateResult(self,decorator_helper)
File "/usr/home/dikshie/public_html/ulg/ulgcisco.py", line 427, in decorateResult
table.append(self._decorateTableLine(l,decorator_helper,session.getRouter()))
File "/usr/home/dikshie/public_html/ulg/ulgcisco.py", line 402, in _decorateTableLine
raise Exception("Can not parse line: "+line)
Exception: Can not parse line: 2001:D30:101:1::11
The text was updated successfully, but these errors were encountered: