Add test to expose problem deleting non-container IPs

and check dead containers are removed
This commit is contained in:
Bryan Boreham committed 2016-04-18 10:13:09 +01:00
1 parent 0e54de63cc
commit 01be916c37
2 files changed
+15

No files matched your search

+1
View File
@@ -971,6 +971,7 @@ func (alloc *Allocator) syncOwned(ids map[string]struct{}) {
for _, cidr := range cidrs {
alloc.space.Free(cidr.Addr)
}
alloc.debugf("Deleting old entry %s: %v", ident, cidrs)
delete(alloc.owned, ident)
changed = true
}