mirror of
https://github.com/sileht/bird-lg.git
synced 2024-11-25 16:24:43 +01:00
Fix bgpmap (Graphviz does not seem to like empty labels)
This commit is contained in:
parent
e557dd651b
commit
fe4e8caf2f
5
lg.py
5
lg.py
|
@ -470,7 +470,10 @@ def show_bgpmap():
|
||||||
|
|
||||||
|
|
||||||
add_node(_as, fillcolor=(first and "#F5A9A9" or "white"))
|
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 = ""
|
hop_label = ""
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue