congress.datasources.neutronv2_qos_driver module

congress.datasources.neutronv2_qos_driver module

class congress.datasources.neutronv2_qos_driver.NeutronV2QosDriver(name='', args=None)

Bases: congress.datasources.datasource_driver.PollingDataSourceDriver

PORTS = 'ports'
QOS_POLICIES = 'policies'
QOS_POLICY_PORT_BINDINGS = 'qos_policy_port_bindings'
QOS_RULES = 'rules'
TRANSLATORS = [{'table-name': 'ports', 'field-translators': ({'translator': {'translation-type': 'VALUE'}, 'fieldname': 'id', 'desc': 'UUID of port'}, {'translator': {'parent-key': 'id', 'translator': {'translation-type': 'VALUE'}, 'parent-key-desc': 'UUID of port', 'val-col-desc': 'UUID of qos policy', 'parent-col-name': 'port_id', 'table-name': 'qos_policy_port_bindings', 'val-col': 'qos_policy_id', 'translation-type': 'LIST'}, 'fieldname': 'qos_policies'}), 'selector-type': 'DICT_SELECTOR', 'translation-type': 'HDICT'}, {'table-name': 'policies', 'field-translators': ({'translator': {'translation-type': 'VALUE'}, 'fieldname': 'id', 'desc': 'The UUID for the qos policy'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'tenant_id', 'desc': 'Tenant ID'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'name', 'desc': 'The qos policy name'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'description', 'desc': 'qos policy description'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'shared', 'desc': 'The qos policy share'}, {'translator': {'parent-key': 'id', 'in-list': True, 'parent-key-desc': 'uuid of qos policy', 'parent-col-name': 'qos_policy_id', 'table-name': 'rules', 'field-translators': ({'translator': {'translation-type': 'VALUE'}, 'fieldname': 'id', 'desc': 'The UUID for the QoS minimumbandwidth rule translator'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'min_kbps', 'desc': 'min_kbps bandwidth limit rule'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'direction', 'desc': 'minimum bandwidth rule direction'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'type', 'desc': 'type of qos rule'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'dscp_mark', 'desc': 'mark of the dscp rule'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'max_burst_kbps', 'desc': 'max_burst_kps limit'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'max_kbps', 'desc': 'max_kps bandwidth limit'}), 'selector-type': 'DICT_SELECTOR', 'translation-type': 'HDICT'}, 'fieldname': 'rules'}), 'selector-type': 'DICT_SELECTOR', 'translation-type': 'HDICT'}]
static get_datasource_info()
initialize_update_methods()
ports_qos_policies_translator = {'parent-col-name': 'port_id', 'parent-key': 'id', 'parent-key-desc': 'UUID of port', 'table-name': 'qos_policy_port_bindings', 'translation-type': 'LIST', 'translator': {'translation-type': 'VALUE'}, 'val-col': 'qos_policy_id', 'val-col-desc': 'UUID of qos policy'}
ports_translator = {'field-translators': ({'translator': {'translation-type': 'VALUE'}, 'fieldname': 'id', 'desc': 'UUID of port'}, {'translator': {'parent-key': 'id', 'translator': {'translation-type': 'VALUE'}, 'parent-key-desc': 'UUID of port', 'val-col-desc': 'UUID of qos policy', 'parent-col-name': 'port_id', 'table-name': 'qos_policy_port_bindings', 'val-col': 'qos_policy_id', 'translation-type': 'LIST'}, 'fieldname': 'qos_policies'}), 'selector-type': 'DICT_SELECTOR', 'table-name': 'ports', 'translation-type': 'HDICT'}
qos_policy_translator = {'field-translators': ({'translator': {'translation-type': 'VALUE'}, 'fieldname': 'id', 'desc': 'The UUID for the qos policy'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'tenant_id', 'desc': 'Tenant ID'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'name', 'desc': 'The qos policy name'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'description', 'desc': 'qos policy description'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'shared', 'desc': 'The qos policy share'}, {'translator': {'parent-key': 'id', 'in-list': True, 'parent-key-desc': 'uuid of qos policy', 'parent-col-name': 'qos_policy_id', 'table-name': 'rules', 'field-translators': ({'translator': {'translation-type': 'VALUE'}, 'fieldname': 'id', 'desc': 'The UUID for the QoS minimumbandwidth rule translator'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'min_kbps', 'desc': 'min_kbps bandwidth limit rule'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'direction', 'desc': 'minimum bandwidth rule direction'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'type', 'desc': 'type of qos rule'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'dscp_mark', 'desc': 'mark of the dscp rule'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'max_burst_kbps', 'desc': 'max_burst_kps limit'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'max_kbps', 'desc': 'max_kps bandwidth limit'}), 'selector-type': 'DICT_SELECTOR', 'translation-type': 'HDICT'}, 'fieldname': 'rules'}), 'selector-type': 'DICT_SELECTOR', 'table-name': 'policies', 'translation-type': 'HDICT'}
qos_rules_translator = {'field-translators': ({'translator': {'translation-type': 'VALUE'}, 'fieldname': 'id', 'desc': 'The UUID for the QoS minimumbandwidth rule translator'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'min_kbps', 'desc': 'min_kbps bandwidth limit rule'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'direction', 'desc': 'minimum bandwidth rule direction'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'type', 'desc': 'type of qos rule'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'dscp_mark', 'desc': 'mark of the dscp rule'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'max_burst_kbps', 'desc': 'max_burst_kps limit'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'max_kbps', 'desc': 'max_kps bandwidth limit'}), 'in-list': True, 'parent-col-name': 'qos_policy_id', 'parent-key': 'id', 'parent-key-desc': 'uuid of qos policy', 'selector-type': 'DICT_SELECTOR', 'table-name': 'rules', 'translation-type': 'HDICT'}
value_trans = {'translation-type': 'VALUE'}
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.