mirror of
https://github.com/sileht/bird-lg.git
synced 2024-12-22 12:34:42 +01:00
fix fmt args
This commit is contained in:
parent
2342607092
commit
ed7494b14b
1
lg.py
1
lg.py
|
@ -508,6 +508,7 @@ def show_bgpmap():
|
|||
for _as in prepend_as:
|
||||
graph.add_edge(pydot.Edge(*(_as, _as), label=" %dx" % prepend_as[_as], color="grey", fontcolor="grey"))
|
||||
|
||||
fmt = request.args.get('fmt', 'png')
|
||||
#response = Response("<pre>" + graph.create_dot() + "</pre>")
|
||||
if fmt == "png":
|
||||
response = Response(graph.create_png(), mimetype='image/png')
|
||||
|
|
Loading…
Reference in a new issue