The apmec.mem.mgmt_drivers.abstract_driver Module

The apmec.mem.mgmt_drivers.abstract_driver Module

class apmec.mem.mgmt_drivers.abstract_driver.DeviceMGMTAbstractDriver

Bases: apmec.api.extensions.PluginInterface

get_description()
get_name()

Return a symbolic name for the service VM plugin.

get_type()

Return one of predefined type of the hosting mea drivers.

mgmt_call(plugin, context, mea, kwargs)
mgmt_create_post(plugin, context, mea)
mgmt_create_pre(plugin, context, mea)
mgmt_delete_post(plugin, context, mea)
mgmt_delete_pre(plugin, context, mea)
mgmt_get_config(plugin, context, mea)

Get a dict of objects.

Returns dict of file-like objects which will be passed to hosting mea. It depends on drivers how to use it. for nova case, it can be used for meta data, file injection or config drive i.e. metadata case: nova –meta <key>=<value> file injection case: nova –file <dst-path>:<src-path> config drive case: nova –config-drive=true –file <dst-path>:<src-path>

mgmt_update_post(plugin, context, mea)
mgmt_update_pre(plugin, context, mea)
mgmt_url(plugin, context, mea)
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.