Proxy support for IPAM

Pass `-e WEAVE_CIDR=` to your container to use IPAM. If IPAM is not
enabled on the weave router, the container will be booted without weave
networking.

I'm not crazy about adding *another* undocumented weave cli command
(ipam-cidr), but it saves the proxy messing around finding container
IPs.
This commit is contained in:
Paul Bellamy committed 2015-05-21 15:37:37 +01:00
1 parent 22b8f482ea
commit 46bdd8c67d
5 files changed
+37 -2

No files matched your search

+3
View File
@@ -928,6 +928,9 @@ case "$COMMAND" in
docker_bridge_ip
echo -n $DOCKER_BRIDGE_IP
;;
ipam-cidr)
get_ipam_cidr "$@" && echo "$CIDR_ARGS"
;;
start)
collect_cidr_args "$@"
shift $CIDR_COUNT