From fe4e8caf2f8d71cba3ab56b15e59710026a095d6 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 5b2b93c..949ea84 100644 --- a/lg.py +++ b/lg.py @@ -470,7 +470,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 = ""