ironic/ironic/db/sqlalchemy/alembic
Om Kumar 1740ab7970 Add portgroups to support LAG interfaces - DB
Ironic should be able to provide the requisite connectivity
information to the Neutron ML2 plugin to allow drivers to
provision the top-of-rack switch for the bare metal server.
The addition of portgroups in Ironic allows the concept of
link aggregation to be handled in Ironic in order to provide
support for cases where multiple interfaces on the bare metal
server connect to switch ports of a single LAG.

This commit includes changes to:
- the DB models (extension of port model and addition of portgroup
  model)
- the DB tests

Partial-bug: #1526403
DocImpact
Co-Authored-By: Laura Moore (laura.moore@sap.com)
Co-Authored-By: Jenny Moorehead (jenny.moorehead@sap.com)
Co-Authored-By: Will Stevenson (will.stevenson@sap.com)

Change-Id: Ic028c316b0670c2d18de89111e83069f3441f476
2016-02-04 22:40:43 +02:00
..
versions Add portgroups to support LAG interfaces - DB 2016-02-04 22:40:43 +02:00
README alembic with initial migration and tests 2014-01-27 16:06:57 +02:00
env.py db: use new EngineFacade feature of oslo.db 2015-07-16 17:01:49 +03:00
script.py.mako alembic with initial migration and tests 2014-01-27 16:06:57 +02:00

README

Please see https://alembic.readthedocs.org/en/latest/index.html for general documentation

To create alembic migrations use:
$ ironic-dbsync revision --message --autogenerate

Stamp db with most recent migration version, without actually running migrations
$ ironic-dbsync stamp --revision head

Upgrade can be performed by:
$ ironic-dbsync - for backward compatibility
$ ironic-dbsync upgrade
# ironic-dbsync upgrade --revision head

Downgrading db:
$ ironic-dbsync downgrade
$ ironic-dbsync downgrade --revision base