check for interface type while creating l2-gateway.
it should be list of dict.if not raise an appropriate message.
for ex: request body for l2-gateway-create is as below.
{"l2_gateway": {"name": "gw2", "devices": [{"interfaces": [{"name": "i1"}]}, "device_name": "switch2"}]}'
Change-Id: I65430efa1a3ed4416e649f0377d9dff7fafc5b57
Closes-Bug: 1548361
Commit 87a79256c494c36f2d9597313f430b24c0110161 added shared exceptions
to neutron-lib. This patch makes use of the aforementioned library.
Change-Id: I14b27381c4f4847ce5e95ff43a1efe97a2685505
../networking_l2gw/services/l2gateway/common/l2gw_validators.py:101:
DeprecationWarning: Using function/method 'instance.ugettext()' is
deprecated: Builtin _ translation function is deprecated in OpenStack;
use the function from _i18n module for your project.
msg = _("Segmentation id must be a valid integer")
TrivialFix
Change-Id: Id713e48c48b1815795112baa4a9a862ccca62b08
This fix for supporting the '0' segmentation id during l2gateway connection create.
This is applied for the use case where some bare metal server can not handle tagged packets(connected to access ports)
Closes-Bug:1444188
Change-Id: Ia92432f0296152116e998ad8418c35ef014f898e
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
Change-Id: I283449c417b82322e85e37f5c23f06c5618a0ab7
This is initial db related files required
for implementing l2gateway RESTful API
Implements: blueprint l2-gateway-api
Change-Id: Ie6bd6b506bd704e0a86273ec7240b7eebb3b18b1