Skip to content

Commit

Permalink
Merge pull request #1362 from napalm-automation/issue-1359
Browse files Browse the repository at this point in the history
Multiple next-hop self config stanzas generate a list
  • Loading branch information
mirceaulinic committed Feb 10, 2021
2 parents b59485f + eff855f commit 0e69404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion napalm/junos/junos.py
Expand Up @@ -1029,7 +1029,7 @@ def _check_nhs(policies, nhs_policies):
policies = [policies]
# Return True if "next-hop self" was found in any of the policies p
for p in policies:
if nhs_policies[p] is True:
if nhs_policies[p] is True or isinstance(nhs_policies[p], list):
return True
return False

Expand Down

0 comments on commit 0e69404

Please sign in to comment.