Convert hide to use collect_cidr_args

This commit is contained in:
Adam Harrison committed 2015-04-17 11:37:28 +01:00
1 parent 2332bc9a94
commit f17cd6ac3b
1 file changed
+3 -1
+3 -1
View File
@@ -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