# Copyright (c) 2016-2017 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. from __future__ import absolute_import import os import yaml import re import time import glob import uuid import random import logging import itertools import xml.etree.ElementTree as ET from yardstick import ssh from yardstick.network_services.utils import get_nsb_option from yardstick.network_services.utils import provision_tool from yardstick.benchmark.contexts.standalone import StandaloneContext log = logging.getLogger(__name__) VM_TEMPLATE = """ vm1 {random_uuid} 102400 102400 20 hvm SandyBridge destroy restart restart /usr/bin/kvm-spice