Merge pull request #2644 from weaveworks/issues/2567-tighter-iprange

Better value for --ipalloc-range in attach-router
This commit is contained in:
Marc Carré authored and GitHub committed 2016-11-17 11:38:12 +00:00
commit 04a87f951b
1 file changed
+1 -1
+1 -1
View File
@@ -1704,7 +1704,7 @@ setup_awsvpc() {
# Recreate the parameter values that are set when the router is first launched
fetch_router_args() {
CONTAINER_ARGS=$(docker inspect -f '{{.Args}}' $CONTAINER_NAME) || return 1
IPRANGE=$(echo $CONTAINER_ARGS | grep -o -e '-ipalloc-range [^ ]*') || true
IPRANGE=$(echo $CONTAINER_ARGS | grep -o -E -e '-ipalloc-range [0-9/.]+') || true
NO_DNS_OPT=$(echo $CONTAINER_ARGS | grep -o -e '--no-dns') || true
}