Skip to content

Commit

Permalink
Fix bug on access->access ZTP where initcheck would fail when configt…
Browse files Browse the repository at this point in the history
…ypes is downlink but data is empty/null
  • Loading branch information
indy-independence committed Apr 26, 2023
1 parent 7ae5859 commit 6b41d66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cnaas_nms/devicehandler/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def verify_peer_iftype(
raise InterfaceError(
"Peer device interface not configured as ACCESS_DOWNLINK: {} {}".format(remote_dev.hostname, remote_if)
)
if "redundant_link" in remote_intf.data and not remote_intf.data["redundant_link"]:
if remote_intf.data and "redundant_link" in remote_intf.data and not remote_intf.data["redundant_link"]:
return False

return True

0 comments on commit 6b41d66

Please sign in to comment.