Merge "ML2 VxlanTypeDriver: Synchronize of VxlanAllocation table"
This commit is contained in:
commit
70214434ca
@ -153,7 +153,7 @@ class VxlanTypeDriver(type_tunnel.TunnelTypeDriver):
|
|||||||
session = db_api.get_session()
|
session = db_api.get_session()
|
||||||
with session.begin(subtransactions=True):
|
with session.begin(subtransactions=True):
|
||||||
# remove from table unallocated tunnels not currently allocatable
|
# remove from table unallocated tunnels not currently allocatable
|
||||||
allocs = session.query(VxlanAllocation)
|
allocs = session.query(VxlanAllocation).with_lockmode("update")
|
||||||
for alloc in allocs:
|
for alloc in allocs:
|
||||||
try:
|
try:
|
||||||
# see if tunnel is allocatable
|
# see if tunnel is allocatable
|
||||||
|
Loading…
Reference in New Issue
Block a user