def _CheckOSPList(os_obj, parameters):
  supported = [v[0] for v in os_obj.supported_parameters]
  delta = frozenset(parameters).difference(supported)
  if delta:
    _Fail("The following parameters are not supported"
          " by the OS %s: %s" % (os_obj.name, utils.CommaJoin(delta)))
Check whether a list of parameters is supported by the OS.
dataset/ETHPy150Open ganeti/ganeti/lib/backend.py/_CheckOSPList