When create subnet, you con set up the value as cidr (the value isn't cidr form).
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Medium
|
Jeremy Hanmer | ||
Folsom |
Fix Released
|
Medium
|
Gary Kotton | ||
quantum (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Quantal |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Now, when create subnet, you con set up the value as cidr (the value isn't cidr form).
<condition>
invalid cidr format (ip address format like '10.0.9.0')
create subnet
<supposed>
We get error.
<log>
curl -v -H "X-Auth-
POST /v2.0/subnets HTTP/1.1
User-Agent: curl/7.22.0 (x86_64-
Host: 192.168.122.1:9696
Accept: */*
X-Auth-
Content-type: application/json
Content-Length: 152
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 335
Date: Wed, 12 Sep 2012 08:40:30 GMT
{"subnet": {"name": "test_subnet9", "enable_dhcp": true, "network_id": "67aef1b0-
<result>
We get cidr value.
Related branches
- Openstack Ubuntu Testers: Pending requested
-
Diff: 79 lines (+68/-0)1 file modifieddebian/changelog (+68/-0)
description: | updated |
description: | updated |
Changed in quantum: | |
assignee: | nobody → Jeremy Hanmer (fzylogic) |
status: | Confirmed → In Progress |
Changed in quantum: | |
milestone: | none → grizzly-1 |
tags: | added: folsom-backport-potential |
tags: | removed: folsom-backport-potential |
Changed in quantum: | |
status: | Fix Committed → Fix Released |
Changed in quantum (Ubuntu): | |
status: | New → Fix Released |
Changed in quantum (Ubuntu Quantal): | |
status: | New → Confirmed |
tags: | removed: in-stable-folsom |
Changed in quantum: | |
milestone: | grizzly-1 → 2013.1 |
The current validation function uses netaddr.IPNetwork to validate the value. If the prefixlen is missing, IPNetwork defaults to a /32. We should update the validator to ensure that a prefix length is explicitly provided.