Revision 08208574 lib/constants.py

b/lib/constants.py
368 368
HTYPE_NODE = "NODE"
369 369
HTYPE_GROUP = "GROUP"
370 370
HTYPE_INSTANCE = "INSTANCE"
371
HTYPE_NETWORK = "NETWORK"
371 372

  
372 373
HKR_SKIP = 0
373 374
HKR_FAIL = 1
......
1090 1091

  
1091 1092
NIC_MODE_BRIDGED = "bridged"
1092 1093
NIC_MODE_ROUTED = "routed"
1094
NIC_IP_POOL = "pool"
1093 1095

  
1094 1096
NIC_VALID_MODES = frozenset([NIC_MODE_BRIDGED, NIC_MODE_ROUTED])
1095 1097

  
1098
NETWORK_TYPE_PRIVATE = "private"
1099
NETWORK_TYPE_PUBLIC = "public"
1100

  
1101
NETWORK_VALID_TYPES = frozenset([NETWORK_TYPE_PRIVATE, NETWORK_TYPE_PUBLIC])
1102

  
1096 1103
NICS_PARAMETER_TYPES = {
1097 1104
  NIC_MODE: VTYPE_STRING,
1098 1105
  NIC_LINK: VTYPE_STRING,
......
1120 1127
INIC_IP = "ip"
1121 1128
INIC_MODE = "mode"
1122 1129
INIC_LINK = "link"
1130
INIC_NETWORK = "network"
1123 1131
INIC_PARAMS_TYPES = {
1124 1132
  INIC_IP: VTYPE_MAYBE_STRING,
1125 1133
  INIC_LINK: VTYPE_STRING,
1126 1134
  INIC_MAC: VTYPE_STRING,
1127 1135
  INIC_MODE: VTYPE_STRING,
1136
  INIC_NETWORK: VTYPE_MAYBE_STRING,
1128 1137
  }
1129 1138
INIC_PARAMS = frozenset(INIC_PARAMS_TYPES.keys())
1130 1139

  
......
1625 1634
QR_OS = "os"
1626 1635
QR_JOB = "job"
1627 1636
QR_EXPORT = "export"
1637
QR_NETWORK = "network"
1628 1638

  
1629 1639
#: List of resources which can be queried using L{opcodes.OpQuery}
1630 1640
QR_VIA_OP = frozenset([
......
1634 1644
  QR_GROUP,
1635 1645
  QR_OS,
1636 1646
  QR_EXPORT,
1647
  QR_NETWORK,
1637 1648
  ])
1638 1649

  
1639 1650
#: List of resources which can be queried using Local UniX Interface
......
1725 1736
SS_MAINTAIN_NODE_HEALTH = "maintain_node_health"
1726 1737
SS_UID_POOL = "uid_pool"
1727 1738
SS_NODEGROUPS = "nodegroups"
1739
SS_NETWORKS = "networks"
1728 1740

  
1729 1741
SS_FILE_PERMS = 0444
1730 1742

  

Also available in: Unified diff