From c9a20ae10c34c3e63edbf333c12d08fa4ea4b99d Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Wed, 1 Jul 2015 11:15:31 +0100 Subject: [PATCH] Warn user if they are trying to use a specific address that clashes with an existing route --- weave | 2 ++ 1 file changed, 2 insertions(+) diff --git a/weave b/weave index 39edfa75..f250ae44 100755 --- a/weave +++ b/weave @@ -858,6 +858,8 @@ ipam_cidrs() { IPAM_CIDRS="$IPAM_CIDRS $CIDR" ALL_CIDRS="$ALL_CIDRS $CIDR" else + # This is a plain IP address; warn if it clashes but carry on + command_exists netcheck && netcheck $1 || true ALL_CIDRS="$ALL_CIDRS $1" fi shift 1