Skip to content

Commit

Permalink
Don't mark devices as unsynchronized when doing dry_run/non-strict up…
Browse files Browse the repository at this point in the history
…date of linknet
  • Loading branch information
indy-independence committed Nov 12, 2021
1 parent e911949 commit b3e8f93
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cnaas_nms/db/linknet.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def create_linknet(cls, session, hostname_a: str, interface_a: str, hostname_b:
new_linknet.device_a_ip = ip_a
new_linknet.device_b_ip = ip_b
new_linknet.ipv4_network = str(ipv4_network)
dev_a.synchronized = False
dev_b.synchronized = False
if strict_check:
dev_a.synchronized = False
dev_b.synchronized = False
return new_linknet

0 comments on commit b3e8f93

Please sign in to comment.