Merge "heat stack-update assumes interfaces have fixed ip addresses"

changes/85/431885/2
Jenkins 6 years ago committed by Gerrit Code Review
commit 7930886f07

@ -313,9 +313,12 @@ class ServerNetworkMixin(object):
for iface in interfaces:
# get interface properties
ipaddr = None
if len(iface.fixed_ips) > 0:
ipaddr = iface.fixed_ips[0]['ip_address']
props = {'port': iface.port_id,
'net_id': iface.net_id,
'ip': iface.fixed_ips[0]['ip_address'],
'ip': ipaddr,
'nets': nets}
# try to match by port or network_id with fixed_ip
net = find_equal(**props)

Loading…
Cancel
Save