]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Abstract sync_allocations
authorCedric Brandily <zzelle@gmail.com>
Mon, 15 Jun 2015 20:20:16 +0000 (22:20 +0200)
committerCedric Brandily <zzelle@gmail.com>
Thu, 25 Jun 2015 09:12:54 +0000 (09:12 +0000)
commit7c273fe2188e0fc3738cb4320affce28e99335ad
tree26b7fef96247397addad3722cb91b6cac501f6ac
parenta5bf502fab57453a1aedd3a53ce89eaf464e1cd9
Abstract sync_allocations

Currently gre/vxlan type drivers have specific sync_allocations
implementations to perform the same feature. This change abstracts
(vxlan) implementation and moves it to TunnelTypeDriver[1] in order to
share implementation between gre/vxlan; this change also adds some
unittests.

Current gre/vxlan and new implementations of sync_allocations are not
Galera-compliant with multi-writers, a follow-up will update it to
fully support Galera.

[1] neutron.plugins.ml2.drivers.type_tunnel

Change-Id: I188a7cf718d811084475f6783d844588de5d60ea
neutron/plugins/ml2/drivers/type_gre.py
neutron/plugins/ml2/drivers/type_tunnel.py
neutron/plugins/ml2/drivers/type_vxlan.py
neutron/tests/unit/plugins/ml2/drivers/base_type_tunnel.py
neutron/tests/unit/plugins/ml2/drivers/test_type_gre.py