autotest/tp-libvirt — pull request #165 by Hao-Liu (2014-05-28 12:13:42+00:00)
Title: tp-libvirt: Fix libvirt network bandwidth

* The portgroup attribute is only applicable with virtual network
interface, So skip the test if the default interface is not a
'network' type.

This patch fix test case `libvirt_network_bandwidth.portgroup`.
When run it on a VM with bridged network, result into a FAIL:
```
18:58:14 ERROR|
18:58:14 ERROR| Traceback (most recent call last):
18:58:14 ERROR| File "/tmp/virt-test-259/virttest/standalone_test.py", line 219, in run_once
18:58:14 ERROR| run_func(self, params, env)
18:58:14 ERROR| File "/tmp/virt-test-259/test-providers.d/downloads/io-github-autotest-libvirt/libvirt/tests/src/libvirt_network_bandwidth.py", line 135, in run
18:58:14 ERROR| % (speed_actual, speed_expected))
18:58:14 ERROR| TestFail: Speed from host to guest is 13610.2362939.
18:58:14 ERROR| But the average of bandwidth.inbound is 512.
18:58:14 ERROR|
18:58:14 ERROR|
18:58:14 ERROR| FAIL type_specific.io-github-autotest-libvirt.libvirt_network_bandwidth.portgroup -> TestFail: Speed from host to guest is 13610.2362939.
But the average of bandwidth.inbound is 512.
```

Signed-off-by: Hao Liu