1
0
Fork 0
mirror of https://github.com/sileht/bird-lg.git synced 2024-11-21 22:44:43 +01:00

fix incorrect var name

This commit is contained in:
Mehdi Abaakouk 2012-07-20 17:52:06 +02:00
parent cb6bb4dd31
commit af5faf98c1

2
lg.py
View file

@ -382,7 +382,7 @@ def show_bgpmap():
label_without_star = kwargs["label"].replace("*", "")
labels = e.get_label().split("\r")
if "%s*" % pl not in labels:
if "%s*" % label_without_star not in labels:
labels = [ kwargs["label"] ] + [ l for l in labels if not l.startswith(label_without_star) ]
labels = sorted(labels, cmp=lambda x,y: x.endswith("*") and -1 or 1)