]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
QoS: db models and migration rules
authorRamanjaneya <ramanjieee@gmail.com>
Wed, 24 Jun 2015 11:54:11 +0000 (17:24 +0530)
committerMiguel Angel Ajo <mangelajo@redhat.com>
Wed, 1 Jul 2015 11:24:38 +0000 (14:24 +0300)
commit4310b4c2a68914aa78275a78f882c70eb57c1fde
tree529421c9da9b322dfa66730e171aa651c8fcef74
parentb17f865f85fddafaab367f55470c2b7ae8135e62
QoS: db models and migration rules

This patch includes db models and migration rules for initial QoS objects.

Comparing to the spec, it adds two more service tables to maintain links
between networks and ports and their respective policies. We maintain
uniqueness as a unique constraint.

In some parallel world, we could have an additional field for networks
and ports that could be nullable to point to a policy. That said, it
breaks qos isolation a bit, and will also be a bit more painful if and
when we decide to spin out qos service pieces outside the tree.

blueprint quantum-qos-api

Co-Authored-By: Ramanjaneya <ramanjieee@gmail.com>
Co-Authored-By: vikram.choudhary <vikram.choudhary@huawei.com>
Co-Authored-By: Ihar Hrachyshka <ihrachys@redhat.com>
Co-Authored-By: Miguel Angel Ajo <mangelajo@redhat.com>
Change-Id: I55a7dac602e2e770c21b6c7957430cb7115e5bdc
neutron/db/migration/alembic_migrations/versions/48153cb5f051_qos_db_changes.py [new file with mode: 0755]
neutron/db/migration/alembic_migrations/versions/HEAD
neutron/db/migration/models/head.py
neutron/db/qos/__init__.py [new file with mode: 0644]
neutron/db/qos/models.py [new file with mode: 0755]