Merge pull request #1053 from weaveworks/437-check-address

Check addresses supplied by users for conflict with existing routes.

Fixes #437. Fixes #480.
This commit is contained in:
Matthias Radestock committed 2015-07-01 15:03:28 +01:00
commit ecfc5d091d
4 files changed
+29 -6

No files matched your search

+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