save IPMI IP in field OOB

This commit is contained in:
clbu 2024-10-17 10:08:22 +02:00
parent 8dde35dd31
commit 0cf5861272
No known key found for this signature in database
GPG key ID: 0891443A5398527F

View file

@ -482,6 +482,13 @@ class ServerBase():
update += 1
if update:
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!')
def print_debug(self):