tmshlvck / ulg Goto Github PK
View Code? Open in Web Editor NEWUniversal Looking Glass
License: GNU General Public License v3.0
Universal Looking Glass
License: GNU General Public License v3.0
$subj.
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
$subj.
The remote SSH connection to BIRD is needed (comment by NIX.CZ).
If my whois-information contain HTML (and as such, escaped javascript-code), they do not get escaped before getting printed.
E.g. http://bgp.freifunk-bielefeld.de/ulg/ulg.py => show routing table ebgp for 172.22.120.0/26 => click on AS64720 and get a nice and pretty javascript-alert ;)
$subj.
Feature $subj. is needed.
The input form should attempt to resolve hostnames and try to rectify incomplete IP addresses or subnets i.e. "1.2.3" -> "1.2.3.0/24".
This feature should be system-wide and should precede all input tests / validation.
Feature $subj.
Hi,
While trying to get the universal looking glass running I receive this error:
File "/var/www/ulg/ulgcisco.py", line 817, in init
self.loadBGPPeers()
File "/var/www/ulg/ulgcisco.py", line 890, in loadBGPPeers
self.rescanHook()
File "/var/www/ulg/ulgcisco.py", line 858, in rescanHook
self.saveBGPPeers()
File "/var/www/ulg/ulgcisco.py", line 879, in saveBGPPeers
ps.save()
File "/var/www/ulg/ulgmodel.py", line 73, in save
pickle.dump(self, f)
File "/usr/lib/python2.7/pickle.py", line 1370, in dump
Pickler(file, protocol).dump(obj)
File "/usr/lib/python2.7/pickle.py", line 224, in dump
self.save(obj)
File "/usr/lib/python2.7/pickle.py", line 331, in save
self.save_reduce(obj=obj, *rv)
File "/usr/lib/python2.7/pickle.py", line 401, in save_reduce
save(args)
File "/usr/lib/python2.7/pickle.py", line 286, in save
f(self, obj) # Call unbound method with explicit self
File "/usr/lib/python2.7/pickle.py", line 562, in save_tuple
save(element)
File "/usr/lib/python2.7/pickle.py", line 286, in save
f(self, obj) # Call unbound method with explicit self
File "/usr/lib/python2.7/pickle.py", line 748, in save_global
(obj, module, name))
PicklingError: Can't pickle <class '_mp_02a9032141b4a629bb688456b2673ce7.PersistentStorage'>: it's not found as _mp_02a9032141b4a629bb688456b2673ce7.PersistentStorage
Where mp_02a9032141b4a629bb688456b2673ce7 is ulgmodel.py. If i attempt to reload after that error I get another one as a result in the corrupted ulg.data that is created during the first try.
ulg.data looks like this:
ccopy_reg
_reconstructor
p0
(
Any help would be greatly appreciated.
the current version gives an error when trying to access an IOS-XR based Cisco Router (ASR9k in our case):
<type 'exceptions.Exception'>: pexpect session failed: Connection timeout.
args = ('pexpect session failed: Connection timeout.',)
message = 'pexpect session failed: Connection timeout.'
This is when the website is called initially. If we can be of any help in testing/debugging please get in contact with me.
$subj.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.