I am using grizzly packages from ubuntu-cloud.archive.canonical.com
192.168.1.0/24 subnet with gateway currently set to 192.168.1.1
failure response:
~# curl -i http://localhost:9696/v2.0/subnets/6ac6f745-a926-4333-b1db-a0c601cd47a8.json -X PUT -H "User-Agent: python-quantumclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: b7d237fbff4e4bf2bf549e6123b7264a" -d '{"subnet": {"gateway_ip": null}}' HTTP/1.1 400 Bad Request Content-Type: application/json; charset=UTF-8 Content-Length: 65 Date: Mon, 13 May 2013 22:51:06 GMT
{"QuantumError": "failed to detect a valid IP address from None"}
After patch
~# curl -i http://localhost:9696/v2.0/subnets/6ac6f745-a926-4333-b1db-a0c601cd47a8.json -X PUT -H "User-Agent: python-quantumclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: b7d237fbff4e4bf2bf549e6123b7264a" -d '{"subnet": {"gateway_ip": null}}' HTTP/1.1 200 OK Content-Type: application/json; charset=UTF-8 Content-Length: 371 Date: Mon, 13 May 2013 22:55:35 GMT
{"subnet": {"name": "", "enable_dhcp": true, "network_id": "be3aa212-ada4-48d4-b800-994c8fe559c6", "tenant_id": "d4c63419b4754f3eaeaa039c048a19fc", "dns_nameservers": [], "allocation_pools": [{"start": "192.168.1.2", "end": "192.168.1.254"}], "host_routes": [], "ip_version": 4, "gateway_ip": null, "cidr": "192.168.1.0/24", "id": "6ac6f745-a926-4333-b1db-a0c601cd47a8"}}
I am using grizzly packages from ubuntu- cloud.archive. canonical. com
192.168.1.0/24 subnet with gateway currently set to 192.168.1.1
failure response:
~# curl -i http:// localhost: 9696/v2. 0/subnets/ 6ac6f745- a926-4333- b1db-a0c601cd47 a8.json -X PUT -H "User-Agent: python- quantumclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: b7d237fbff4e4bf 2bf549e6123b726 4a" -d '{"subnet": {"gateway_ip": null}}'
HTTP/1.1 400 Bad Request
Content-Type: application/json; charset=UTF-8
Content-Length: 65
Date: Mon, 13 May 2013 22:51:06 GMT
{"QuantumError": "failed to detect a valid IP address from None"}
After patch
~# curl -i http:// localhost: 9696/v2. 0/subnets/ 6ac6f745- a926-4333- b1db-a0c601cd47 a8.json -X PUT -H "User-Agent: python- quantumclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: b7d237fbff4e4bf 2bf549e6123b726 4a" -d '{"subnet": {"gateway_ip": null}}'
HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
Content-Length: 371
Date: Mon, 13 May 2013 22:55:35 GMT
{"subnet": {"name": "", "enable_dhcp": true, "network_id": "be3aa212- ada4-48d4- b800-994c8fe559 c6", "tenant_id": "d4c63419b4754f 3eaeaa039c048a1 9fc", "dns_nameservers": [], "allocation_pools": [{"start": "192.168.1.2", "end": "192.168.1.254"}], "host_routes": [], "ip_version": 4, "gateway_ip": null, "cidr": "192.168.1.0/24", "id": "6ac6f745- a926-4333- b1db-a0c601cd47 a8"}}