From 3fae79ed543a40aca397844e20743fda06b3e9b2 Mon Sep 17 00:00:00 2001 From: Baptiste Jonglez Date: Tue, 28 Jan 2014 15:32:27 +0100 Subject: [PATCH] Fix bgpmap (Graphviz does not seem to like empty labels) --- lg.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lg.py b/lg.py index c39aa22..74a49ba 100644 --- a/lg.py +++ b/lg.py @@ -467,7 +467,10 @@ def show_bgpmap(): add_node(_as, fillcolor=(first and "#F5A9A9" or "white")) - edge = add_edge(nodes[previous_as], nodes[_as] , label=hop_label, fontsize="7") + if hop_label: + edge = add_edge(nodes[previous_as], nodes[_as], label=hop_label, fontsize="7") + else: + edge = add_edge(nodes[previous_as], nodes[_as], fontsize="7") hop_label = ""