Add test to expose problem deleting non-container IPs
and check dead containers are removed
This commit is contained in:
1 parent
0e54de63cc
commit
01be916c37
2 files changed
+15
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user