With recent neutron changes, traffic shaping is applied when network
type is either vlan or flat when BW limit is configured.
BW limit tests have been adapted to the new algoritm to avoid dropping
iperf control packets that make tests fail. Those packets could be
dropped because shaper buffers drop packets when bitrate exceeds the
configured BW limit. In order to avoid this:
- Injected bitrate, which exceeds the configured BW limit, is limitted
to 1.5 * bwlimit
- iperf tests duration is limitted to 6 seconds (the shorted the iperf
tests, the less likely shaper buffers get full)
Change-Id: Icc1e1eb333a8844d7ddcf7a17ccc48886b3889e1