Bring the sqlalchemy models in sync with the alembic migrations.
Add the neutron standard model-migration sync test. The test is added
to the unit test env since l2gw does not have a functional job
yet. This requires that l2gw uses the python-db-jobs template in the
(Also remove downgrades since they are not supported.)
When the update or show l2 gateway api requests specify invalid id,
neutron returns internal server error because _get_l2_gateway method didn't
raises L2GatewayNotFound error.
This commit fixes it so that these api can return 404 code error in the
If an invalid L2 gateway UUID is passed to _get_l2_gateway method,
it returns None instead of raising L2GatewayNotFound exception.
This leads to an Internal Server Error.
This patch replaces the 'try...except' block with an 'if' statement
because get method of SQLAlchemy Query object returns a None
instead of raising NotFound exception.
Enhance the L2GW Service Driver framework to embrace
out-of-L2GW-source-tree service drivers.
Co-Authored-By: Vivekanandan Narasimhan <email@example.com>
There were calls to non-existent assert's that were silently passing;
there a number of tests that were poorly mocked and have been fixed.
Other tests were clearly just change detector and were removed altogether.
The patch set handles recreation of tunnels
when openvswitch is restarted and it also proposes
the fix for exception thrown while adding vm port
after l2gateway connection to ovsdb
Co-Authored-By: Phani Pawan <firstname.lastname@example.org>
The patch set fixes the problem described in a launchpad
bug, where any failures in inserting/updating/delete MACs
into the OVSDB server do not get retried in a later
point in time. The failure may occur when the L2 gateway
agent is down or the OVSDB server is down.
The patch set fixes the problem described in launchpad
bug 1445770 where l2-gateway-connection-delete reports
an error when there are VMs on the network associated
with the connection.
The patch set fixes the problem described in the launchpad
bug 1445153, where the L2 gateway service plugin was getting
an error while inserting VM MAC address into the OVSDB server
when a new VM is booted on a network for which l2-gateway
L2Gateway creation for multiple segmentation ids for an interface input and output for rest api is not aligned.
This defect found only in case of user passes multiple segmentation id .
This patch set implements RPC calls that are initiated by the
L2 gateway agent destined to the L2 gateway service plugin
Author: Phani Pawan <email@example.com>
Co-Authored-By: Manjunath Patil <firstname.lastname@example.org>
The patch set introduces callback registration
to the ML2 plugin for PORT CREATE, PORT UPDATE
and PORT DELETE operations so that it can
accordingly instruct the L2 gateway agent
to configure the OVSDB server when these events
1. Handled for multiple devices and interfaces
2. handled for multiple segmentation id
3. segmentation id validation handled
4. handled for multi segmentation network
5. handled for connection create for multiple networks with same l2gateway
6. Fixed defect during l2gateway delete check for connection exists
7. update l2 gateway when invalid device name given
8. update l2 gateway for multiple devices
The patch set moves the db models and helper methods
specific to OVSDB from