Documentation Virtualization Abstraction Layer (VAL)

class motey.val.valmanager.VALManager(logger, capability_repository, plugin_manager)[source]

Manger for all the virtual abstraction layer plugins. Loads the plugins and wrapps the commands.

close()[source]

Will clean up the VALManager. At first it will remove the capability from the capability engine and afterwards all the deactivate method for each plugin will be executed.

instantiate(image)[source]

Instantiate an image.

Parameters:image (motey.models.image.Image) – the image which should be executed
Returns:the image id of the instantiated image
register_plugins()[source]

Register all the available plugins. A plugin has to be located under motey/val/plugins. After all the available plugins are loaded, the activate method of the plugin will be executed and a capability with the related plugin type will be added to the capability engine.

start()[source]

Starts the VALManager and register all the available plugins.

terminate(image)[source]

Terminate a running instance.

Parameters:instance_name (str) – the name of the instance