]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Return appropriate error for invalid-port state in create port API.
authorMadhav Puri <madhav.puri@gmail.com>
Fri, 24 Feb 2012 06:44:07 +0000 (22:44 -0800)
committerMadhav Puri <madhav.puri@gmail.com>
Fri, 24 Feb 2012 07:05:04 +0000 (23:05 -0800)
commitb9805bd234edc0076ff69fafc2ab020562863b58
tree4620c36e8c5cd3a75d6299f9c5ca2bc805b3b601
parenta945d1a30478c644d307c77a8a85f3a08e5a834e
Return appropriate error for invalid-port state in create port API.

Fixes ovs-plugin to return appropriate error code when create port API is passed a port state value other than ACTIVE or DOWN. Fixes bug 919265.

Also added unit-test to test the behavior and verified it using ovs-plugin with devstack.

Change-Id: Ibd4e7bfdf4483c7ad1ef4ca70a336cb164493ae1
quantum/db/api.py
quantum/tests/unit/_test_api.py