echo" create all net : ${PRG} add $(${KAZ_BIN_DIR}/kazList.sh compose validate)"
exit1
}
allNetName=""
exportCMD=""
for ARG in $@;do
case"${ARG}" in
'-h'|'-help')
usage
;;
'-n')
shift
exportSIMU="echo"
;;
-*)
usage
;;
list|add)
CMD="${ARG}"
shift;
;;
*)
allNetName="${allNetName}${ARG}"
shift
;;
esac
done
if[ -z "${CMD}"];then
usage
fi
# running composes
exportallBridgeName="$(docker network list | grep bridge | awk '{print $2}')"
# running network
exportallBridgeNet=$(for net in ${allBridgeName};do docker inspect ${net}| grep Subnet | sed 's#.*"\([0-9]*\.[0-9]*\.[0-9]*\.[0-9]*/[0-9]*\)".*# \1#';done)