Merge pull request #15 from Solvik/hotfix
hotfix - assign interface to ip while updating server
This commit is contained in:
commit
ebeca4493e
1 changed files with 2 additions and 2 deletions
|
@ -154,8 +154,8 @@ class Network():
|
|||
status=1,
|
||||
)
|
||||
else:
|
||||
if netbox_ip.device != device:
|
||||
netbox_ip.device = device
|
||||
if netbox_ip.interface != interface:
|
||||
netbox_ip.interface = interface
|
||||
netbox_ip.save()
|
||||
if nic_update:
|
||||
interface.save()
|
||||
|
|
Loading…
Reference in a new issue