]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
NSX: Ensure gateway devices are usable after upgrade
authorSalvatore Orlando <salv.orlando@gmail.com>
Mon, 17 Mar 2014 14:43:53 +0000 (15:43 +0100)
committerSalvatore Orlando <salv.orlando@gmail.com>
Mon, 17 Mar 2014 14:43:53 +0000 (15:43 +0100)
commitfb5bef8f53e80c1cbd7e570d26651723d4ff599c
tree05c3c8ae881e734b16c42dfa0cda820dcd971c2c
parentcde3da2f89ba5fc4c7ef138cffb3a711c2d4ba9a
NSX: Ensure gateway devices are usable after upgrade

The gateway device database migration upon an upgrade creates
gateway devices objects from references in network gateway
objects.
While these gateway devices are perfectly usable
in network gateways, they are not directly visible to tenants
and also cannot be updated to change details such as name,
connector type or ip as well as the client certificate.

This patch fixes the DB migration in order to ensure tenant
have access to gateway devices created after an upgrade.
This patch also modifies the l2 gateway nsxlib module to
ensure request bodies are correctly created even when not all
the attributes of a gateway device are specified.

Change-Id: I7077e9884adc739fb75e64a6e9a17a124d79fb6b
Closes-Bug: 1293617
neutron/db/migration/alembic_migrations/versions/19180cf98af6_nsx_gw_devices.py
neutron/plugins/vmware/nsxlib/l2gateway.py