don't validate CIDRs twice in weave expose

This commit is contained in:
Matthias Radestock committed 2015-04-19 11:17:42 +01:00
1 parent 5addf4e7b1
commit 40cd875763
1 file changed
-1
-1
View File
@@ -810,7 +810,6 @@ case "$COMMAND" in
fi
create_bridge --without-ethtool
for CIDR in $CIDR_ARGS; do
validate_cidr $CIDR
if ! ip addr show dev $BRIDGE | grep -qF $CIDR
then
ip addr add dev $BRIDGE $CIDR