Avoid default gateway collisions
Avoid default gateway collisions

Default gateways truncate the endpoint name to 12 characters.  This can
make network endpoints ambiguous especially for load-balancing sandboxes
for networks with lenghty names (such as with our prefixes).  Address
this by detecting an overflow in the sanbox name length and instead
opting to name the gateway endpoint "gateway_<id>" which should never
collide.

Signed-off-by: Chris Telfer <9cf1a5ba8f085fe3bf87fd3e4704febafc338899@docker.com>

thaJeztah/docker,thaJeztah/docker,flavio/docker,mahak/docker,nalind/docker,djs55/docker,mahak/docker,nawawi/docker,cpuguy83/docker,gnailuy/docker,jthelin/docker,thaJeztah/docker,jameszhan/docker,paralin/docker,Ramzec/docker,moby/moby,konstruktoid/docker-upstream,Mokolea/docker,moul/docker,cpuguy83/docker,cpuguy83/docker,moul/docker,jimjag/docker,AkihiroSuda/docker,cpuguy83/docker,Ramzec/docker,nalind/docker,paralin/docker,yosifkit/docker,bearstech/moby,Ramzec/docker,trebonian/docker,mahak/docker,docker/docker,jameszhan/docker,mahak/docker,gnailuy/docker,gnailuy/docker,vdemeester/docker,bearstech/moby,thaJeztah/docker,Mokolea/docker,Ramzec/docker,bearstech/moby,yosifkit/docker,konstruktoid/docker-upstream,AkihiroSuda/docker,AkihiroSuda/docker,docker/docker,djs55/docker,yosifkit/docker,nawawi/docker,jthelin/docker,moul/docker,bearstech/moby,nalind/docker,vdemeester/docker,yosifkit/docker,Mokolea/docker,Mokolea/docker,konstruktoid/docker-upstream,jameszhan/docker,trebonian/docker,nalind/docker,nawawi/docker,moby/moby,trebonian/docker,konstruktoid/docker-upstream,vdemeester/docker,flavio/docker,djs55/docker,jimjag/docker,moby/moby,gnailuy/docker,nawawi/docker,flavio/docker,moul/docker,paralin/docker,AkihiroSuda/docker,docker/docker,jimjag/docker,flavio/docker,jimjag/docker,trebonian/docker,moby/moby,paralin/docker