Oob ip #307

Open
CllaudiaB wants to merge 3 commits from CllaudiaB/oob_ip into main
Showing only changes of commit 0cf5861272 - Show all commits

View file

@ -482,6 +482,13 @@ class ServerBase():
update += 1 update += 1
if update: if update:
expansion.save() expansion.save()
myip = nb.ipam.ip_addresses.filter(device_id=server.id)
for ip in myip:
if ip.assigned_object.display == "IPMI":
server.update({'oob_ip': ip.id})
logging.debug('Finished updating Server!') logging.debug('Finished updating Server!')
def print_debug(self): def print_debug(self):