Make Claim to block if the IPAM ring is not established

This commit is contained in:
Martynas Pumputis committed 2016-05-09 12:48:41 +01:00
1 parent daa369b86c
commit d698aefbfc
5 files changed
+71 -28

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@ func (alloc *Allocator) SimplyAllocate(ident string, cidr address.CIDR) (address
}
func (alloc *Allocator) SimplyClaim(ident string, cidr address.CIDR) error {
return alloc.Claim(ident, cidr, true, true)
return alloc.Claim(ident, cidr, true, true, returnFalse)
}
func TestAllocFree(t *testing.T) {