]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
NSX QoS ext: RXTX factor can be decimal
authorSalvatore Orlando <salv.orlando@gmail.com>
Tue, 9 Jun 2015 10:41:07 +0000 (03:41 -0700)
committerSalvatore Orlando <salv.orlando@gmail.com>
Fri, 19 Jun 2015 11:02:12 +0000 (04:02 -0700)
commit538a7bf3c73d968185590d81a9b3a6523190aeb4
treec5d6aee2f3d7c0476be127e28c3a85ef12719589
parent3b27f83964d44241dd03d680f79e14e7459db4da
NSX QoS ext: RXTX factor can be decimal

In Nova flavors it is ok to specify a decimal RXTX factor.
For this reason when applying QoS to a port Neutron should not
convert this factor to an integer value, but simply ensure
it's a valid float number and positive.

Partial-Bug: #1463363

Change-Id: I983123ef7fd8f1b52b358aff3b579459fce63033
neutron/api/v2/attributes.py
neutron/plugins/vmware/extensions/qos.py
neutron/tests/unit/api/v2/test_attributes.py