mirror of
https://github.com/sileht/bird-lg.git
synced 2024-11-25 16:24:43 +01:00
fix incorrect var name
This commit is contained in:
parent
cb6bb4dd31
commit
af5faf98c1
2
lg.py
2
lg.py
|
@ -382,7 +382,7 @@ def show_bgpmap():
|
||||||
|
|
||||||
label_without_star = kwargs["label"].replace("*", "")
|
label_without_star = kwargs["label"].replace("*", "")
|
||||||
labels = e.get_label().split("\r")
|
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 = [ 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)
|
labels = sorted(labels, cmp=lambda x,y: x.endswith("*") and -1 or 1)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue