Allow specification of initial IPAM ring via --ipam-seed

This commit is contained in:
Adam Harrison committed 2016-03-21 09:49:54 +00:00
1 parent 18ddf50b4c
commit e9081c6607
8 files changed
+126 -28

No files matched your search

+2 -2
View File
@@ -125,8 +125,8 @@ func CheckAllExpectedMessagesSent(allocs ...*Allocator) {
type mockDB struct{}
func (d *mockDB) Load(_ string, _ interface{}) error { return nil }
func (d *mockDB) Save(_ string, _ interface{}) error { return nil }
func (d *mockDB) Load(_ string, _ interface{}) (bool, error) { return false, nil }
func (d *mockDB) Save(_ string, _ interface{}) error { return nil }
func makeAllocator(name string, cidrStr string, quorum uint) (*Allocator, address.CIDR) {
peername, err := mesh.PeerNameFromString(name)