1.1.1.1.1.1. yardstick.benchmark.contexts package¶
1.1.1.1.1.1.1. Submodules¶
1.1.1.1.1.1.2. yardstick.benchmark.contexts.base module¶
-
class
yardstick.benchmark.contexts.base.
Context
[source]¶ Bases:
object
Class 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
1.1.1.1.1.1.3. yardstick.benchmark.contexts.dummy module¶
1.1.1.1.1.1.4. yardstick.benchmark.contexts.heat module¶
-
class
yardstick.benchmark.contexts.heat.
HeatContext
[source]¶ Bases:
yardstick.benchmark.contexts.base.Context
Class 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
-
1.1.1.1.1.1.5. yardstick.benchmark.contexts.model module¶
Logical model
-
class
yardstick.benchmark.contexts.model.
Network
(name, context, attrs)[source]¶ Bases:
yardstick.benchmark.contexts.model.Object
Class 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:
object
Base 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.Object
Class 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.Object
Class that represents a router in the logical model
-
class
yardstick.benchmark.contexts.model.
Server
(name, context, attrs)[source]¶ Bases:
yardstick.benchmark.contexts.model.Object
Class 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
= []¶
-