WIP: fix persistent port allocation

This piggybacks on #6555 with some fixups according to @lk4d4's comments. More to come, but please feel free to review at any point.

/cc @crosbymichael 
whoops. fixed.

On Jun 26, 2014, at 10:46 AM, Alexandr Morozov <notifications@github.com> wrote:

> In daemon/networkdriver/portallocator/portallocator_test.go:
> 
> > @@ -110,7 +113,7 @@ func TestAllocateAllPorts(t *testing.T) {
> >  		}
> >  	}
> >  
> > -	if _, err := RequestPort(defaultIP, "tcp", 0); err != ErrAllPortsAllocated {
> > +	if port, err := RequestPort(defaultIP, "tcp", 0); err != ErrAllPortsAllocated {
> portallocator_test.go:116: port declared and not used
> 
> —
> Reply to this email directly or view it on GitHub.
>