Allow specification of initial IPAM ring via --ipam-seed

This commit is contained in:
Adam Harrison committed 2016-03-21 09:49:54 +00:00
1 parent 18ddf50b4c
commit e9081c6607
8 files changed
+126 -28

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
#! /bin/bash
. ./config.sh
start_suite "Specify initial IPAM seed"
# Launch two disconnected routers
weave_on $HOST1 launch --name ::1 --ipam-seed ::1,::2
weave_on $HOST2 launch --name ::2 --ipam-seed ::1,::2
# Ensure allocations can proceed
assert_raises "timeout 10 cat <( start_container $HOST1 --name c1)"
assert_raises "timeout 10 cat <( start_container $HOST2 --name c2)"
# Connect routers
weave_on $HOST2 connect $HOST1
# Check connectivity
assert_raises "exec_on $HOST1 c1 $PING c2"
assert_raises "exec_on $HOST2 c2 $PING c1"
end_suite