Comment 1 for bug 1207196

Revision history for this message
Mh Raies (raiesmh08) wrote : Re: Documentation tells that to create subnet and port , no request body is required while without request body subnet or port can't be created

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>