yardstick.benchmark.contexts package¶
Submodules¶
yardstick.benchmark.contexts.base module¶
-
class
yardstick.benchmark.contexts.base.Context[source]¶ Bases:
objectClass that represents a context in the logical model
-
static
get_server(attr_name)[source]¶ lookup server info by name from context attr_name: either a name for a server created by yardstick or a dict with attribute name mapping when using external heat templates
-
list= []¶
-
static
yardstick.benchmark.contexts.dummy module¶
yardstick.benchmark.contexts.heat module¶
-
class
yardstick.benchmark.contexts.heat.HeatContext[source]¶ Bases:
yardstick.benchmark.contexts.base.ContextClass that represents a context in the logical model
-
flavor¶ returns application’s default flavor name
-
image¶ returns application’s default image name
-
user¶ return login user name corresponding to image
-
yardstick.benchmark.contexts.model module¶
Logical model
-
class
yardstick.benchmark.contexts.model.Network(name, context, attrs)[source]¶ Bases:
yardstick.benchmark.contexts.model.ObjectClass that represents a network in the logical model
-
static
find_by_route_to(external_network)[source]¶ finds a network that has a route to the specified network
-
static
find_external_network()[source]¶ return the name of an external network some network in this context has a route to
-
list= []¶
-
static
-
class
yardstick.benchmark.contexts.model.Object(name, context)[source]¶ Bases:
objectBase class for classes in the logical model Contains common attributes and methods
-
dn¶ returns distinguished name for object
-
-
class
yardstick.benchmark.contexts.model.PlacementGroup(name, context, policy)[source]¶ Bases:
yardstick.benchmark.contexts.model.ObjectClass that represents a placement group in the logical model Concept comes from the OVF specification. Policy should be one of “availability” or “affinity (there are more but they are not supported)”
-
map= {}¶
-
-
class
yardstick.benchmark.contexts.model.Router(name, network_name, context, external_gateway_info)[source]¶ Bases:
yardstick.benchmark.contexts.model.ObjectClass that represents a router in the logical model
-
class
yardstick.benchmark.contexts.model.Server(name, context, attrs)[source]¶ Bases:
yardstick.benchmark.contexts.model.ObjectClass that represents a server in the logical model
-
add_to_template(template, networks, scheduler_hints=None)[source]¶ adds to the template one or more servers (instances)
-
flavor¶ returns a server’s flavor name
-
image¶ returns a server’s image name
-
list= []¶
-