]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Avoid sending names longer than 40 character to NVP
authorSalvatore Orlando <sorlando@nicira.com>
Thu, 31 Jan 2013 16:42:13 +0000 (08:42 -0800)
committerSalvatore Orlando <salv.orlando@gmail.com>
Mon, 4 Mar 2013 17:25:43 +0000 (18:25 +0100)
commitb7b7cc8f67073dabe2d6c97e87b49b9ea346692a
tree4e6032d0f428a14b5a13bc645bcafcef47949e42
parentccb847e1fba2f08d5e445251eee2623fd168ffd0
Avoid sending names longer than 40 character to NVP

Bug 1130192

NVP limits for name lenghts are much shorter than Quantum's.
The quantum name is truncated before dispatching the NVP API operation.

Change-Id: Idee568756a0df991003f59d498846ac9ff7fe095
quantum/plugins/nicira/nicira_nvp_plugin/nicira_qos_db.py
quantum/plugins/nicira/nicira_nvp_plugin/nvplib.py
quantum/tests/unit/nicira/fake_nvpapiclient.py
quantum/tests/unit/nicira/test_nicira_plugin.py