diff --git a/lg.py b/lg.py index 3b5e56e..0abc24b 100644 --- a/lg.py +++ b/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("
" + graph.create_dot() + "
") if fmt == "png": response = Response(graph.create_png(), mimetype='image/png')