Skip to content

Commit

Permalink
bump python project to 0.2.9
Browse files Browse the repository at this point in the history
  • Loading branch information
wdesmedt committed Mar 12, 2024
1 parent b3ba53a commit 262e82d
Show file tree
Hide file tree
Showing 3 changed files with 122 additions and 118 deletions.
3 changes: 3 additions & 0 deletions nornir_srl/connections/srlinux.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,9 @@ def get_lag(self, lag_id: str = "*") -> Dict[str, Any]:
resp = self.get(
paths=[path_spec.get("path", "")], datatype=path_spec["datatype"]
)
for itf in resp[0].get("interface", []):
for member in itf.get("lag", {}).get("member", []):
member["name"] = str(member.get("name", "")).replace("ethernet", "et")
res = jmespath.search(path_spec["jmespath"], resp[0])
return {"lag": res}

Expand Down
Loading

0 comments on commit 262e82d

Please sign in to comment.