Skip to content

Commit

Permalink
fix handling of juniper indirect next-hops, add tests. closes #135
Browse files Browse the repository at this point in the history
  • Loading branch information
thatmattlove committed Apr 23, 2021
1 parent fa19683 commit 47fc55f
Show file tree
Hide file tree
Showing 4 changed files with 1,009 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hyperglass/models/parsing/juniper.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ def validate_optional_flags(cls, values):
if "selected-next-hop" in hop:
selected_next_hop = hop.get("to", "")
break
elif hop.get("to") is not None:
selected_next_hop = hop["to"]
break

values["next-hop"] = selected_next_hop

Expand Down
Loading

0 comments on commit 47fc55f

Please sign in to comment.