From f17cd6ac3b9f77cd66f855952407c2956591e370 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Fri, 17 Apr 2015 11:37:28 +0100 Subject: [PATCH] Convert hide to use collect_cidr_args --- weave | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/weave b/weave index 5c88c985..66a03727 100755 --- a/weave +++ b/weave @@ -802,8 +802,10 @@ case "$COMMAND" in ;; hide) [ $# -gt 0 ] || usage + collect_cidr_args "$@" + shift $CIDR_COUNT create_bridge --without-ethtool - for CIDR; do + for CIDR in $CIDR_ARGS; do validate_cidr $CIDR if ip addr show dev $BRIDGE | grep -qF $CIDR then