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.
20 lines
474 B
Bash
Executable File
20 lines
474 B
Bash
Executable File
#! /bin/bash
|
|
|
|
. ./config.sh
|
|
|
|
UNIVERSE=10.2.2.0/24
|
|
|
|
start_suite "Ping proxied containers over cross-host weave network (with IPAM)"
|
|
|
|
weave_on $HOST1 launch -iprange $UNIVERSE
|
|
weave_on $HOST1 launch-proxy
|
|
weave_on $HOST2 launch -iprange $UNIVERSE $HOST1
|
|
weave_on $HOST2 launch-proxy
|
|
|
|
proxy_start_container $HOST1 -e WEAVE_CIDR= --name=c1
|
|
proxy_start_container $HOST2 -e WEAVE_CIDR= --name=c2
|
|
C2=$(container_ip $HOST2 c2)
|
|
assert_raises "exec_on $HOST1 c1 $PING $C2"
|
|
|
|
end_suite
|