1
0
Fork 0
mirror of https://github.com/sileht/bird-lg.git synced 2024-12-22 12:34:42 +01:00

Fix bgpmap (Graphviz does not seem to like empty labels)

This commit is contained in:
Baptiste Jonglez 2014-01-28 15:32:27 +01:00
parent e557dd651b
commit fe4e8caf2f

5
lg.py
View file

@ -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 = ""