Skip to content

Commit

Permalink
blackified
Browse files Browse the repository at this point in the history
  • Loading branch information
wdesmedt committed Jun 20, 2024
1 parent 596d04e commit 298efcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nornir_srl/connections/srlinux.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,12 +199,12 @@ def augment_routes(d, attribs): # augment routes with attributes
+ ("*" if d["valid-route"] else "")
+ (">" if d["best-route"] else "")
)
if "label1" in d: # from SRL 24.3 onwards for mac/ip routes
if "label1" in d: # from SRL 24.3 onwards for mac/ip routes
d["vni"] = d["label1"].get("value", "-")
elif "label" in d: # for SRL 24.3 onwards
d["vni"] = d["label"].get("value", "-")
else:
d["vni"] = d.get("vni", "-")
d["vni"] = d.get("vni", "-")
d["_rt"] = ",".join(
[
x_comm.split("target:")[1]
Expand Down

0 comments on commit 298efcb

Please sign in to comment.