def CheckParamsNotGlobal(params, glob_pars, kind, bad_levels, good_levels):
  used_globals = glob_pars.intersection(params)
  if used_globals:
    msg = ("The following %s parameters are global and cannot"
           " be customized at %s level, please modify them at"
           " %s level: %s" %
           (kind, bad_levels, good_levels, utils.CommaJoin(used_globals)))
    raise errors.OpPrereqError(msg, errors.ECODE_INVAL)
Make sure that none of the given paramters is global.
dataset/ETHPy150Open ganeti/ganeti/lib/cmdlib/common.py/CheckParamsNotGlobal