refactor: get rid of test-launch

This commit is contained in:
Matthias Radestock committed 2015-05-09 17:29:13 +01:00
1 parent 7b0f432339
commit db198652a5
2 files changed
+10 -22

No files matched your search

-21
View File
@@ -390,10 +390,6 @@ launch() {
netnsenter ip link set $CONTAINER_IFNAME up
}
test_launch() {
netnsenter ethtool -K eth0 tx off >/dev/null
}
attach() {
if netnsenter ip link show $CONTAINER_IFNAME >/dev/null 2>&1 ; then
for ADDR; do
@@ -713,23 +709,6 @@ case "$COMMAND" in
wait_for_status $CONTAINER_NAME $HTTP_PORT
echo $CONTAINER
;;
test-launch)
# For testing purposes. Allows launching of several weave
# routers on the same machine, by invoking this multiple times
# with different WEAVE_CONTAINER_NAMEs
#
# Note that the routers are not connected to the $BRIDGE and
# do not perform any capture/injection. So this is mainly
# intended for testing of administrative and control plane
# functionality, rather than routing.
check_not_running $CONTAINER_NAME $BASE_IMAGE
MACADDR=$(random_mac)
CONTAINER=$(docker run --privileged -d --name=$CONTAINER_NAME -e WEAVE_PASSWORD \
$WEAVE_DOCKER_ARGS $IMAGE -name $MACADDR -nickname "$CONTAINER_NAME" "$@")
with_container_netns $CONTAINER test_launch >/dev/null
wait_for_status $CONTAINER $HTTP_PORT
echo $CONTAINER
;;
launch-dns)
[ $# -gt 0 ] || usage
CIDR=$1