NetworkAllocate is called on Swarm master node which creates a network. The return option map is used to describe the network, and is passed to CreateNetwork which is called on all nodes when a service is created. Returning nil instead the actual options made Docker to omit the "works.weave.multicast" flag, thus no multicast could be used in Swarm.