Check manually-assigned addresses with IPAM to see if they clash

This commit is contained in:
Bryan Boreham committed 2015-07-21 17:02:52 +01:00
1 parent 26dc83dbc2
commit 647b755b64
5 files changed
+35 -19

No files matched your search

+2 -2
View File
@@ -215,9 +215,9 @@ func (alloc *Allocator) Lookup(ident string, r address.Range) (address.Address,
}
// Claim an address that we think we should own (Sync)
func (alloc *Allocator) Claim(ident string, addr address.Address) error {
func (alloc *Allocator) Claim(ident string, addr address.Address, reclaim bool) error {
resultChan := make(chan error)
op := &claim{resultChan: resultChan, ident: ident, addr: addr}
op := &claim{resultChan: resultChan, ident: ident, addr: addr, reclaim: reclaim}
alloc.doOperation(op, &alloc.pendingClaims)
return <-resultChan
}