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 = [{'translation-type': 'HDICT', 'table-name': 'ports', 'selector-type': 'DICT_SELECTOR', 'field-translators': ({'fieldname': 'id', 'desc': 'UUID of port', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'qos_policies', 'translator': {'translation-type': 'LIST', 'table-name': 'qos_policy_port_bindings', 'parent-key': 'id', 'parent-col-name': 'port_id', 'parent-key-desc': 'UUID of port', 'val-col': 'qos_policy_id', 'val-col-desc': 'UUID of qos policy', 'translator': {'translation-type': 'VALUE'}}})}, {'translation-type': 'HDICT', 'table-name': 'policies', 'selector-type': 'DICT_SELECTOR', 'field-translators': ({'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': {'translation-type': 'VALUE'}}, {'fieldname': 'rules', 'translator': {'translation-type': 'HDICT', 'table-name': 'rules', 'parent-key': 'id', 'parent-col-name': 'qos_policy_id', 'parent-key-desc': 'uuid of qos policy', 'selector-type': 'DICT_SELECTOR', 'in-list': True, 'field-translators': ({'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', 'translator': {'translation-type': 'VALUE'}})}})}]
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': ({'fieldname': 'id', 'desc': 'UUID of port', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'qos_policies', 'translator': {'translation-type': 'LIST', 'table-name': 'qos_policy_port_bindings', 'parent-key': 'id', 'parent-col-name': 'port_id', 'parent-key-desc': 'UUID of port', 'val-col': 'qos_policy_id', 'val-col-desc': 'UUID of qos policy', 'translator': {'translation-type': 'VALUE'}}}), 'selector-type': 'DICT_SELECTOR', 'table-name': 'ports', 'translation-type': 'HDICT'}
qos_policy_translator = {'field-translators': ({'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': {'translation-type': 'VALUE'}}, {'fieldname': 'rules', 'translator': {'translation-type': 'HDICT', 'table-name': 'rules', 'parent-key': 'id', 'parent-col-name': 'qos_policy_id', 'parent-key-desc': 'uuid of qos policy', 'selector-type': 'DICT_SELECTOR', 'in-list': True, 'field-translators': ({'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', 'translator': {'translation-type': 'VALUE'}})}}), 'selector-type': 'DICT_SELECTOR', 'table-name': 'policies', 'translation-type': 'HDICT'}
qos_rules_translator = {'field-translators': ({'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', 'translator': {'translation-type': 'VALUE'}}), '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.