Merge "Ensure that Quantum uses configured fixed IP"
This commit is contained in:
commit
80325d6897
@ -136,7 +136,8 @@ class API(base.Base):
|
||||
touched_port_ids.append(port['id'])
|
||||
else:
|
||||
if fixed_ips.get(network_id):
|
||||
port_req_body['port']['fixed_ip'] = fixed_ip
|
||||
port_req_body['port']['fixed_ips'] = [{'ip_address':
|
||||
fixed_ip}]
|
||||
port_req_body['port']['network_id'] = network_id
|
||||
port_req_body['port']['admin_state_up'] = True
|
||||
port_req_body['port']['tenant_id'] = instance['project_id']
|
||||
|
@ -399,7 +399,8 @@ class TestQuantumv2(test.TestCase):
|
||||
else:
|
||||
fixed_ip = fixed_ips.get(net_id)
|
||||
if fixed_ip:
|
||||
port_req_body['port']['fixed_ip'] = fixed_ip
|
||||
port_req_body['port']['fixed_ips'] = [{'ip_address':
|
||||
fixed_ip}]
|
||||
port_req_body['port']['network_id'] = net_id
|
||||
port_req_body['port']['admin_state_up'] = True
|
||||
port_req_body['port']['tenant_id'] = \
|
||||
|
Loading…
x
Reference in New Issue
Block a user