Move sandbox resources when container restarts
Move sandbox resources when container restarts

Currently when container has a restart policy and gets
restarted, docker does not release networking and allocate
it back. But it presents libnetwork with a new sandbox while
all the network resources are locked in the old sandbox. This
commit attempts to move all the network resources from the old
sandbox to the new sandbox when libnetwork is presented with the
new sandbox.

Signed-off-by: Jana Radhakrishnan <045898bda7d4800fe4909a9831e702ab79e266be@docker.com>

mavenugo/libnetwork,fcrisciani/libnetwork,anortef/libnetwork,curtiszimmerman/libnetwork,WeiZhang555/libnetwork,mYmNeo/libnetwork,pyakpyak/libnetwork,jmzwcn/libnetwork,kolyshkin/libnetwork,coolljt0725/libnetwork,mahak/libnetwork,ityangchen/libnetwork,runcom/libnetwork,kolyshkin/libnetwork,mbanikazemi/libnetwork,medallia/libnetwork,junxu/libnetwork,coolljt0725/libnetwork,allencloud/libnetwork,YujiOshima/libnetwork,aboch/libnetwork_new,allencloud/libnetwork,medallia/libnetwork,kolyshkin/libnetwork,kunalkushwaha/libnetwork,sainath14/libnetwork,hackersdotmu/libnetwork,vdemeester/libnetwork,jimmycmh/libnetwork,fcrisciani/libnetwork,vdemeester/libnetwork,junxu/libnetwork,pyakpyak/libnetwork,sainath14/libnetwork,mavenugo/libnetwork,mahak/libnetwork,WeiZhang555/libnetwork,hackersdotmu/libnetwork,medallia/libnetwork,runcom/libnetwork,mYmNeo/libnetwork,vdemeester/libnetwork,tgraf/libnetwork,AdoHe/libnetwork,docker/libnetwork,YujiOshima/libnetwork,tgraf/libnetwork,tmakita/libnetwork,abhi/libnetwork,abhi/libnetwork,anortef/libnetwork,cpuguy83/libnetwork,kunalkushwaha/libnetwork,msabansal/libnetwork,docker/libnetwork,docker/libnetwork,curtiszimmerman/libnetwork,AdoHe/libnetwork,abhi/libnetwork,amitkris/libnetwork,ityangchen/libnetwork,amitkris/libnetwork,mahak/libnetwork,jmzwcn/libnetwork,mbanikazemi/libnetwork,jimmycmh/libnetwork,msabansal/libnetwork,aboch/libnetwork_new,tmakita/libnetwork,cpuguy83/libnetwork