Skip to content

Commit

Permalink
blackified
Browse files Browse the repository at this point in the history
  • Loading branch information
wdesmedt committed Nov 13, 2024
1 parent 01d93dd commit 56675a8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
20 changes: 17 additions & 3 deletions nornir_srl/connections/srlinux.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,9 +445,23 @@ def augment_resp(resp):
peer_data["ipv6-unicast"] = afi
peer["_local-asn"] = peer_data["local-as"]
peer["_flags"] = ""
peer["_flags"] += "D" if peer.get("dynamic-neighbor", False) else "-"
peer["_flags"] += "B"if peer.get("failure-detection", {}).get("enable-bfd", False) else "-"
peer["_flags"] += "F"if peer.get("failure-detection", {}).get("fast-failover", False) else "-"
peer["_flags"] += (
"D" if peer.get("dynamic-neighbor", False) else "-"
)
peer["_flags"] += (
"B"
if peer.get("failure-detection", {}).get(
"enable-bfd", False
)
else "-"
)
peer["_flags"] += (
"F"
if peer.get("failure-detection", {}).get(
"fast-failover", False
)
else "-"
)
if peer_data.get("evpn"):
peer["_evpn"] = (
str(peer_data["evpn"]["received-routes"])
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "nornir-srl"
version = "0.2.21"
version = "0.2.22"
description = "Nornir connection plugin for SRLinux"
authors = ["Walter De Smedt <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 56675a8

Please sign in to comment.