Revision e8a4c138 scripts/gnt-node

b/scripts/gnt-node
56 56
  output = SubmitOpCode(op)
57 57

  
58 58
  if not opts.no_headers:
59
    headers = {"name": "Node", "pinst_cnt": "Pinst", "sinst_cnt": "Sinst",
60
               "pinst_list": "PriInstances", "sinst_list": "SecInstances",
61
               "pip": "PrimaryIP", "sip": "SecondaryIP",
62
               "dtotal": "DTotal", "dfree": "DFree",
63
               "mtotal": "MTotal", "mnode": "MNode", "mfree": "MFree",
64
               "bootid": "BootID"}
59
    headers = {
60
      "name": "Node", "pinst_cnt": "Pinst", "sinst_cnt": "Sinst",
61
      "pinst_list": "PriInstances", "sinst_list": "SecInstances",
62
      "pip": "PrimaryIP", "sip": "SecondaryIP",
63
      "dtotal": "DTotal", "dfree": "DFree",
64
      "mtotal": "MTotal", "mnode": "MNode", "mfree": "MFree",
65
      "bootid": "BootID",
66
      "ctotal": "CTotal",
67
      }
65 68
  else:
66 69
    headers = None
67 70

  
......
72 75

  
73 76
  numfields = ["dtotal", "dfree",
74 77
               "mtotal", "mnode", "mfree",
75
               "pinst_cnt", "sinst_cnt"]
78
               "pinst_cnt", "sinst_cnt",
79
               "ctotal"]
76 80

  
77 81
  # change raw values to nicer strings
78 82
  for row in output:
......
309 313
           "", "Lists the nodes in the cluster. The available fields"
310 314
           " are (see the man page for details): name, pinst_cnt, pinst_list,"
311 315
           " sinst_cnt, sinst_list, pip, sip, dtotal, dfree, mtotal, mnode,"
312
           " mfree, bootid. The default field list is (in order): name,"
316
           " mfree, bootid, cpu_count. The default field list is"
317
           " (in order): name,"
313 318
           " dtotal, dfree, mtotal, mnode, mfree, pinst_cnt, sinst_cnt."),
314 319
  'remove': (RemoveNode, ARGS_ONE, [DEBUG_OPT],
315 320
             "<node_name>", "Removes a node from the cluster"),

Also available in: Unified diff