Commit Graph

3 Commits

Author SHA1 Message Date
Brian Haley de243a3513 Fix E402 pep8 errors
Fix E402 (module level import not at top of file) pep8 errors
and no longer ignore new failures.

Trivialfix

Change-Id: If9a202f1f322b5b03966c692e33e94b7c872079b
2018-04-20 18:13:07 +00:00
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
Brian Haley 955fa1c075 Implement 'get-me-a-network' API building block
This patch introduces an API to allocate an externally connected
private tenant network on demand. The API is idempotent in that,
once the topology is provisioned, further API calls keep returning
the same topology to the caller.

The API, as introduced by the patch, is not currently on, and its
design carefully ensures minimal impact on the existing codebase.
In fact the feature depends on and enhances the external-net extension,
but it does so via callbacks.

A subsequent patch in this series will make it available by default,
and API tests will be added to validate the functionality.

Partially-implements: blueprint get-me-a-network

Co-Authored-By: Armando Migliaccio <armamig@gmail.com>
Co-Authored-By: Henry Gessau <HenryG@gessau.net>

Change-Id: I4abd45252026431452f0d2cb2805043489c2f6ad
2016-02-08 18:06:35 -08:00