Warn user if they are trying to use a specific address that clashes with an existing route

This commit is contained in:
Bryan Boreham committed 2015-07-01 12:17:02 +01:00
1 parent f05225da22
commit c9a20ae10c
1 file changed
+2
+2
View File
@@ -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