save IPMI IP in field OOB
This commit is contained in:
parent
8dde35dd31
commit
0cf5861272
1 changed files with 7 additions and 0 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue