From c3a9c990edce2d393ae65b8090aae64a729b59d9 Mon Sep 17 00:00:00 2001 From: Stepan Andrushko Date: Tue, 28 Aug 2018 13:30:19 +0300 Subject: Assign static IP to VM for standalone context During VM spawning IP address should be assigned by DHCP server in the local network. Sometimes DHCP server is not capable to assign IP address. So, need to add static IP address. JIRA: YARDSTICK-1402 Change-Id: Ie59c340eb88eddcaff043496fc20aa48b49205ec Signed-off-by: Stepan Andrushko --- yardstick/benchmark/contexts/standalone/model.py | 42 ++++++++++++++++------ .../benchmark/contexts/standalone/ovs_dpdk.py | 3 +- yardstick/benchmark/contexts/standalone/sriov.py | 3 +- 3 files changed, 35 insertions(+), 13 deletions(-) (limited to 'yardstick/benchmark') diff --git a/yardstick/benchmark/contexts/standalone/model.py b/yardstick/benchmark/contexts/standalone/model.py index 962cb48e2..fa78fc1eb 100644 --- a/yardstick/benchmark/contexts/standalone/model.py +++ b/yardstick/benchmark/contexts/standalone/model.py @@ -100,6 +100,19 @@ users: EOF """ +NETWORK_DATA_TEMPLATE = """ +cat > {network_file} <