Warn user if they are trying to use a specific address that clashes with an existing route
This commit is contained in:
1 parent
f05225da22
commit
c9a20ae10c
1 file changed
+2
@@ -858,6 +858,8 @@ ipam_cidrs() {
|
|||||||
IPAM_CIDRS="$IPAM_CIDRS $CIDR"
|
IPAM_CIDRS="$IPAM_CIDRS $CIDR"
|
||||||
ALL_CIDRS="$ALL_CIDRS $CIDR"
|
ALL_CIDRS="$ALL_CIDRS $CIDR"
|
||||||
else
|
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"
|
ALL_CIDRS="$ALL_CIDRS $1"
|
||||||
fi
|
fi
|
||||||
shift 1
|
shift 1
|
||||||
|
|||||||
Reference in new issue
Block a user