congress.datasources.tacker_driver module

congress.datasources.tacker_driver module

class congress.datasources.tacker_driver.TackerDriver(name='', args=None)

Bases: congress.datasources.datasource_driver.PollingDataSourceDriver, congress.datasources.datasource_driver.ExecutionDriver

INSTANCES = 'vnfs.instances'
TRANSLATORS = [{'table-name': 'vnfds', 'field-translators': ({'translator': {'translation-type': 'VALUE'}, 'fieldname': 'id'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'name'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'description'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'template_source'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'tenant_id'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'created_at'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'updated_at'}), 'selector-type': 'DICT_SELECTOR', 'translation-type': 'HDICT'}, {'table-name': 'vnfs', 'field-translators': ({'translator': {'translation-type': 'VALUE'}, 'fieldname': 'id'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'name'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'status'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'description'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'vnfd_id'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'vim_id'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'tenant_id'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'instance_id'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'created_at'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'updated_at'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'error_reason'}, {'translator': {'parent-key': 'id', 'translator': {'translation-type': 'VALUE'}, 'val-col': 'value', 'parent-col-name': 'vnf_id', 'table-name': 'vnfs.instances', 'key-col': 'key', 'translation-type': 'VDICT', 'objects-extract-fn': <function extract_mgmt_urls>}, 'fieldname': 'mgmt_url'}), 'selector-type': 'DICT_SELECTOR', 'translation-type': 'HDICT'}]
VNFDS = 'vnfds'
VNFS = 'vnfs'
execute(action, action_args)

Overwrite ExecutionDriver.execute().

extract_mgmt_urls()
static get_datasource_info()
initialize_update_methods()
value_trans = {'translation-type': 'VALUE'}
vnfds_translator = {'field-translators': ({'translator': {'translation-type': 'VALUE'}, 'fieldname': 'id'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'name'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'description'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'template_source'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'tenant_id'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'created_at'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'updated_at'}), 'selector-type': 'DICT_SELECTOR', 'table-name': 'vnfds', 'translation-type': 'HDICT'}
vnfs_translator = {'field-translators': ({'translator': {'translation-type': 'VALUE'}, 'fieldname': 'id'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'name'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'status'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'description'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'vnfd_id'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'vim_id'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'tenant_id'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'instance_id'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'created_at'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'updated_at'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'error_reason'}, {'translator': {'parent-key': 'id', 'translator': {'translation-type': 'VALUE'}, 'val-col': 'value', 'parent-col-name': 'vnf_id', 'table-name': 'vnfs.instances', 'key-col': 'key', 'translation-type': 'VDICT', 'objects-extract-fn': <function extract_mgmt_urls>}, 'fieldname': 'mgmt_url'}), 'selector-type': 'DICT_SELECTOR', 'table-name': 'vnfs', 'translation-type': 'HDICT'}
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.