From fd4c9e347338e66a608eedb06d087cf882396302 Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Tue, 24 Nov 2015 11:15:46 +0000 Subject: [PATCH] Show which range is being allocated in `weave report` --- ipam/status.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ipam/status.go b/ipam/status.go index 57af14a9bc..e7a252ba7b 100644 --- a/ipam/status.go +++ b/ipam/status.go @@ -1,6 +1,7 @@ package ipam import ( + "fmt" "github.com/weaveworks/weave/ipam/paxos" "github.com/weaveworks/weave/net/address" ) @@ -88,7 +89,7 @@ func newAllocateIdentSlice(allocator *Allocator) []string { var slice []string for _, op := range allocator.pendingAllocates { allocate := op.(*allocate) - slice = append(slice, allocate.ident) + slice = append(slice, fmt.Sprintf("%s %s", allocate.ident, allocate.r.String())) } return slice }