Skip to content

Commit

Permalink
Show which range is being allocated in weave report
Browse files Browse the repository at this point in the history
  • Loading branch information
bboreham committed Nov 24, 2015
1 parent 00e8fcd commit fd4c9e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ipam/status.go
@@ -1,6 +1,7 @@
package ipam

import (
"fmt"
"github.com/weaveworks/weave/ipam/paxos"
"github.com/weaveworks/weave/net/address"
)
Expand Down Expand Up @@ -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
}

0 comments on commit fd4c9e3

Please sign in to comment.