create vxlan successfully with invalid vxlan id for ml2:
curl -i http://127.0.0.1:9696/v2.0/networks -H "X-Auth-Token:$token_id" -H "Content-Type: application/json" -X POST -d '{"network": {"name": "vxlan_test", "admin_state_up": true, "tenant_id": $tenant_id, "provider:network_type": "vxlan", "router:external": false, "shared": false, "provider:segmentation_id": -1}}'
response:
HTTP/1.1 201 Created
Content-Type: application/json; charset=UTF-8
Content-Length: 332
X-Openstack-Request-Id: req-1e9af36d-b742-4c76-bfdf-0cea4df6399f
Date: Fri, 11 Apr 2014 09:25:51 GMT
{
"network": {
"status": "ACTIVE",
"subnets": [
],
"name": "vxlan_test",
"provider:physical_network": null,
"admin_state_up": true,
"tenant_id": "bfed9cd5990c49ad8a42ba36d505c003",
"provider:network_type": "vxlan",
"router:external": false,
"shared": false,
"id": "5bd9b587-02f8-4432-b0d0-18a126126072",
"provider:segmentation_id": -1
}
}
Fix proposed to branch: master /review. openstack. org/89982
Review: https:/