diff --git a/nornir_srl/connections/srlinux.py b/nornir_srl/connections/srlinux.py index 531e502..459b1cc 100644 --- a/nornir_srl/connections/srlinux.py +++ b/nornir_srl/connections/srlinux.py @@ -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"]) diff --git a/pyproject.toml b/pyproject.toml index 0314d4c..b929d12 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 "] readme = "README.md"