neutron/neutron/services/auto_allocate
Cedric Brandily d4aa8c5ea9 Fix auto_allocated_topology migration with PostgreSQL
auto_allocated_topology migration[1] adds the column nullable boolean
column is_default to externalnetworks table. PostgreSQL sets is_default
to NULL as no server_default value is provided.

It implies inconsistencies with PostgreSQL as neutron-server returns
for non-default external-networks:
* is_default == None for external-networks migrated from Liberty,
* is_default == False for external-networks created with Mitaka.

This change alters is_default column in externalnetworks table into a
non-nullable column with a server_default value (False).

[1] neutron/db/migration/alembic_migrations/versions/mitaka/expand/i\
19f26505c74f_auto_allocated_topology.py

Closes-Bug: #1557785
Change-Id: I004a76237fe8d927a1d45dab4fdfefaf1af6de96
2016-03-15 18:04:13 -07:00
..
__init__.py Implement 'get-me-a-network' API building block 2016-02-08 18:06:35 -08:00
db.py Fix auto_allocated_topology migration with PostgreSQL 2016-03-15 18:04:13 -07:00
exceptions.py Implement 'get-me-a-network' API building block 2016-02-08 18:06:35 -08:00
models.py Implement 'get-me-a-network' API building block 2016-02-08 18:06:35 -08:00
plugin.py Implement 'get-me-a-network' API building block 2016-02-08 18:06:35 -08:00