Revision 503574ec lib/query.py

b/lib/query.py
2556 2556
  fields.extend([
2557 2557
    (_MakeField("group_cnt", "NodeGroups", QFT_NUMBER, "Number of nodegroups"),
2558 2558
     NETQ_GROUP, 0, _GetLength(network_to_groups)),
2559
    (_MakeField("group_list", "GroupList", QFT_OTHER, "List of nodegroups"),
2560
     NETQ_GROUP, 0, _GetSortedList(network_to_groups)),
2559
    (_MakeField("group_list", "GroupList", QFT_OTHER,
2560
     "List of nodegroups (group name, NIC mode, NIC link)"),
2561
     NETQ_GROUP, 0, lambda ctx, network: network_to_groups(ctx)[network.uuid]),
2561 2562
    ])
2562 2563

  
2563 2564
  # Add fields for instances

Also available in: Unified diff