2012-09-05 14:57:18 |
Nevon Brake |
description |
Using the latest devstack on master, I tried to assign a fixed ip using the v4-fixed-ip option in the --nic parameter of the nova boot command, but the address is assigned using the automatic allocation instead.
Looking at the code it seems the Quantum api call in Nova does pass the parameter correctly.
nova/nova/network/quantumv2/api.py (line 127):
port_req_body['port']['fixed_ip'] = fixed_ip
Based on the way Quantum uses the port request body, I think this should be:
port_req_body['port']['fixed_ips'] = [{'ip_address':fixed_ip}]
Works as expected after I made this change. |
Using the latest devstack on master, I tried to assign a fixed ip using the v4-fixed-ip option in the --nic parameter of the nova boot command, but the address is assigned using the automatic allocation instead.
Looking at the code it seems the Quantum api call in Nova doesn't pass the parameter correctly.
nova/nova/network/quantumv2/api.py (line 127):
port_req_body['port']['fixed_ip'] = fixed_ip
Based on the way Quantum uses the port request body, I think this should be:
port_req_body['port']['fixed_ips'] = [{'ip_address':fixed_ip}]
Works as expected after I made this change. |
|