Change ipam Universe from Range to CIDR
There was no code to initialize it as anything else, and this lets us bake in an assumption that it will always be a CIDR.
This commit is contained in:
1 parent
dbc8b4fe1a
commit
f50fbc002e
5 files changed
+8
-8
No files matched your search
@@ -143,7 +143,7 @@ func makeAllocator(name string, cidrStr string, quorum uint) (*Allocator, addres
|
||||
OurName: peername,
|
||||
OurUID: mesh.PeerUID(rand.Int63()),
|
||||
OurNickname: "nick-" + name,
|
||||
Universe: cidr.Range(),
|
||||
Universe: cidr,
|
||||
IsObserver: quorum == 0,
|
||||
Quorum: func() uint { return quorum },
|
||||
Db: new(mockDB),
|
||||
|
||||
Reference in new issue
Block a user