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 = [{'translation-type': 'HDICT', 'table-name': 'vnfds', 'selector-type': 'DICT_SELECTOR', 'field-translators': ({'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', 'translator': {'translation-type': 'VALUE'}})}, {'translation-type': 'HDICT', 'table-name': 'vnfs', 'selector-type': 'DICT_SELECTOR', 'field-translators': ({'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': {'translation-type': 'VALUE'}}, {'fieldname': 'mgmt_url', 'translator': {'translation-type': 'VDICT', 'table-name': 'vnfs.instances', 'parent-key': 'id', 'parent-col-name': 'vnf_id', 'key-col': 'key', 'val-col': 'value', 'objects-extract-fn': <function TackerDriver.extract_mgmt_urls>, 'translator': {'translation-type': 'VALUE'}}})}]
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': ({'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', 'translator': {'translation-type': 'VALUE'}}), 'selector-type': 'DICT_SELECTOR', 'table-name': 'vnfds', 'translation-type': 'HDICT'}
vnfs_translator = {'field-translators': ({'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': {'translation-type': 'VALUE'}}, {'fieldname': 'mgmt_url', 'translator': {'translation-type': 'VDICT', 'table-name': 'vnfs.instances', 'parent-key': 'id', 'parent-col-name': 'vnf_id', 'key-col': 'key', 'val-col': 'value', 'objects-extract-fn': <function TackerDriver.extract_mgmt_urls>, 'translator': {'translation-type': 'VALUE'}}}), 'selector-type': 'DICT_SELECTOR', 'table-name': 'vnfs', 'translation-type': 'HDICT'}