]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add 'server_default' parameter
authorAnn Kamyshnikova <akamyshnikova@mirantis.com>
Tue, 8 Jul 2014 08:52:44 +0000 (12:52 +0400)
committerAnn Kamyshnikova <akamyshnikova@mirantis.com>
Fri, 11 Jul 2014 06:46:09 +0000 (10:46 +0400)
commitffdfd3368db157f2c178dd319a28b00c505b2da1
tree76d48d8219a13a9c8fe64e20302c02fe64c8e0b5
parent1cf3b80549821ed41ef51257a954ab9ce73c8f93
Add 'server_default' parameter

If a model mentions 'default' it is better to set 'server_default'
as well because this 'defaut' can be reached only via code. This
change adds 'server_default' parameter to models and in database,
so if someone will use SQL query it will also use default value.

For model Router added parameter server_default. In migration it was
added by this change https://review.openstack.org/105212.

For model MeteringLabelRule added parameter server_default.
In migration it will be added by heal script due to problems
with Metering plugin and grenade.

Partial-Bug: #1295539

Change-Id: Iab6fb4eca73e4918c16dac2945fd8552ae2a0c73
13 files changed:
neutron/db/agents_db.py
neutron/db/l3_gwmode_db.py
neutron/db/metering/metering_db.py
neutron/db/migration/alembic_migrations/versions/5446f2a45467_set_server_default.py [new file with mode: 0644]
neutron/db/migration/alembic_migrations/versions/HEAD
neutron/plugins/brocade/db/models.py
neutron/plugins/cisco/db/n1kv_models_v2.py
neutron/plugins/ml2/drivers/cisco/apic/apic_model.py
neutron/plugins/ml2/drivers/type_gre.py
neutron/plugins/ml2/drivers/type_vxlan.py
neutron/plugins/mlnx/db/mlnx_models_v2.py
neutron/plugins/vmware/dbexts/models.py
neutron/plugins/vmware/dbexts/qos_db.py