You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While bgpmap works ok for prefixes outside my AS, drawing the map for my own prefixes fails with the following error:
[2016-12-22 09:48:12 +0000] [7534] [ERROR] Error handling request /bgpmap/?q={%22Moscow%22:%20[[%22sr2%22,%20%22%22,%20%221.1.1.1/32%22]]} Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/gunicorn/workers/sync.py", line 135, in handle self.handle_request(listener, req, client, addr) File "/usr/lib64/python2.7/site-packages/gunicorn/workers/sync.py", line 176, in handle_request respiter = self.wsgi(environ, resp.start_response) File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1836, in __call__ return self.wsgi_app(environ, start_response) File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1820, in wsgi_app response = self.make_response(self.handle_exception(e)) File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1403, in handle_exception reraise(exc_type, exc_value, tb) File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app response = self.full_dispatch_request() File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception reraise(exc_type, exc_value, tb) File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request rv = self.dispatch_request() File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/opt/data/www/bird-lg/lg.py", line 510, in show_bgpmap response = Response(graph.create_png(), mimetype='image/png') File "/usr/lib64/python2.7/site-packages/pydot.py", line 1802, in <lambda> lambda f=frmt, prog=self.prog : self.create(format=f, prog=prog)) File "/usr/lib64/python2.7/site-packages/pydot.py", line 2023, in create status, stderr_output) ) InvocationException: Program terminated with status: 1. stderr follows: Error: /tmp/tmpQ37yUx: syntax error in line 5 near '['
The following is /tmp/tmpQ37yUx (I only replaced the real prefix with a fake 1.1.1.1/32, my AS number with 12345 and my AS name with 'AS-AS')
While bgpmap works ok for prefixes outside my AS, drawing the map for my own prefixes fails with the following error:
[2016-12-22 09:48:12 +0000] [7534] [ERROR] Error handling request /bgpmap/?q={%22Moscow%22:%20[[%22sr2%22,%20%22%22,%20%221.1.1.1/32%22]]}
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/gunicorn/workers/sync.py", line 135, in handle
self.handle_request(listener, req, client, addr)
File "/usr/lib64/python2.7/site-packages/gunicorn/workers/sync.py", line 176, in handle_request
respiter = self.wsgi(environ, resp.start_response)
File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1836, in __call__
return self.wsgi_app(environ, start_response)
File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1820, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1403, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/opt/data/www/bird-lg/lg.py", line 510, in show_bgpmap
response = Response(graph.create_png(), mimetype='image/png')
File "/usr/lib64/python2.7/site-packages/pydot.py", line 1802, in <lambda>
lambda f=frmt, prog=self.prog : self.create(format=f, prog=prog))
File "/usr/lib64/python2.7/site-packages/pydot.py", line 2023, in create
status, stderr_output) )
InvocationException: Program terminated with status: 1. stderr follows: Error: /tmp/tmpQ37yUx: syntax error in line 5 near '['
The following is /tmp/tmpQ37yUx (I only replaced the real prefix with a fake 1.1.1.1/32, my AS number with 12345 and my AS name with 'AS-AS')
digraph BGPMAP {
Moscow [shape=box, fontsize=10, style=filled, fillcolor="#F5A9A9", label=<<TABLE CELLBORDER="0" BORDER="0" CELLPADDING="0" CELLSPACING="0"><TR><TD ALIGN="CENTER">MOSCOW</TD></TR></TABLE>>];
12345 [style=filled, fontsize=10, fillcolor="#F5A9A9", label=<<TABLE CELLBORDER="0" BORDER="0" CELLPADDING="0" CELLSPACING="0"><TR><TD ALIGN="CENTER">AS12345 | AS-AS<BR/>, RU</TD></TR></TABLE>>];
12345 -> Moscow [color=red, style=bold, splines=true];
[style=filled, fontsize=10, fillcolor="#F5A9A9", label=<<TABLE CELLBORDER="0" BORDER="0" CELLPADDING="0" CELLSPACING="0"><TR><TD ALIGN="CENTER">AS?????</TD></TR></TABLE>>];
Moscow -> [color=red, style=bold, fontsize=7, splines=true, label="sr2*"];
"1.1.1.1/32" [shape=box, style=filled, fontsize=10, fillcolor="#F5A9A9", label=<<TABLE CELLBORDER="0" BORDER="0" CELLPADDING="0" CELLSPACING="0"><TR><TD ALIGN="CENTER">1.1.1.1/32</TD></TR></TABLE>>];
-> "1.1.1.1/32" [color=red, style=bold, fontsize=7, splines=true];
}
The text was updated successfully, but these errors were encountered: