Documentation tells that to create subnet and port (using xml formatted body), no request body is required while without request body subnet or port can't be created
Bug #1207196 reported by
Mh Raies
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openstack-api-site |
Fix Released
|
Low
|
Diane Fleming |
Bug Description
In the page http://
Subnet and Port section tells that subnet/port creation does not require a request body.
While without request body no subnet/port can be created.
When I tried subnet creation without body then 400(bad request response) and body required error displayed.
Changed in openstack-api-site: | |
status: | New → Confirmed |
Changed in neutron: | |
status: | New → Opinion |
tags: | added: netconn-api |
Changed in openstack-api-site: | |
assignee: | nobody → Diane Fleming (diane-fleming) |
milestone: | none → kilo |
importance: | Undecided → Low |
no longer affects: | neutron |
To post a comment you must log in.
I tried by following request body for subnet creation and subnet is successfully created -
curl -i http://<ip>:9696/ v2.0/subnets. xml -X POST -H "X-Auth-Token: <id> -H "Content-Type: application/xml" -H "Accept: application/xml" -H "User-Agent: python- neutronclient" -d '<subnet ><network_id >id</network_ id><ip_ version >4</ip_ version> <cidr >cidr</ cidr></ subnet> '
Thus required body is like -
<subnet ><network_id >network_ id_here< /network_ id><cidr >required_ cidr_here< /cidr>< /subnet>