def MakeNodeOffline(node, value):
  # value in ["yes", "no"]
  AssertCommand(["gnt-node", "modify", "--offline", value, node.primary])
gnt-node modify --offline=value
dataset/ETHPy150Open ganeti/ganeti/qa/qa_node.py/MakeNodeOffline