Convert hide to use collect_cidr_args
This commit is contained in:
1 parent
2332bc9a94
commit
f17cd6ac3b
1 file changed
+3
-1
@@ -802,8 +802,10 @@ case "$COMMAND" in
|
|||||||
;;
|
;;
|
||||||
hide)
|
hide)
|
||||||
[ $# -gt 0 ] || usage
|
[ $# -gt 0 ] || usage
|
||||||
|
collect_cidr_args "$@"
|
||||||
|
shift $CIDR_COUNT
|
||||||
create_bridge --without-ethtool
|
create_bridge --without-ethtool
|
||||||
for CIDR; do
|
for CIDR in $CIDR_ARGS; do
|
||||||
validate_cidr $CIDR
|
validate_cidr $CIDR
|
||||||
if ip addr show dev $BRIDGE | grep -qF $CIDR
|
if ip addr show dev $BRIDGE | grep -qF $CIDR
|
||||||
then
|
then
|
||||||
|
|||||||
Reference in new issue
Block a user