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:
Martynas Pumputis authored and Bryan Boreham committed 2016-06-01 17:06:31 +01:00
1 parent dbc8b4fe1a
commit f50fbc002e
5 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -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),