Merge "Update port['device_id'] when creating server"

This commit is contained in:
Jenkins 2017-09-08 14:18:15 +00:00 committed by Gerrit Code Review
commit ba2aeab9dd

View File

@ -157,6 +157,10 @@ class BuildNetworkTask(flow_utils.MoganTask):
elif vif.get('port_id'):
port = self.manager.network_api.show_port(
context, vif.get('port_id'))
self.manager.network_api.check_port_availability(port)
self.manager.network_api.bind_port(context,
port['id'],
server)
nic_dict = {'port_id': port['id'],
'network_id': port['network_id'],