Improve NSB Standalone XML generation 53/50653/19
authorRodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
Mon, 15 Jan 2018 14:25:46 +0000 (14:25 +0000)
committerRodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
Wed, 21 Mar 2018 09:12:49 +0000 (09:12 +0000)
commit49af409b0c43ec3d3f0479c21cef172e29e1cdfd
treec78d6c24a881ad4d672bf8f2b96fa0e2a3ec8426
parent88e2120ee8905bb66eb56e37d8910c0e63faebf6
Improve NSB Standalone XML generation

Delayed the generation of the XML file until the last step. The
following functions will return a XML string insted:
- Libvirt.build_vm_xml
- SriovContext._enable_interfaces
- OvsDpdkContext._enable_interfaces

The XML file will be written just before copying the file to the
compute hosting the VMs.

JIRA: YARDSTICK-939

Change-Id: Icc80f4741903bbe335db4ebccab395b72fa87e82
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
yardstick/benchmark/contexts/standalone/model.py
yardstick/benchmark/contexts/standalone/ovs_dpdk.py
yardstick/benchmark/contexts/standalone/sriov.py
yardstick/tests/unit/benchmark/contexts/standalone/test_model.py
yardstick/tests/unit/benchmark/contexts/standalone/test_ovs_dpdk.py
yardstick/tests/unit/benchmark/contexts/standalone/test_sriov.py