Revision d3a5e2de tools/cfgupgrade

b/tools/cfgupgrade
105 105
    networks = group.get("networks", None)
106 106
    if not networks:
107 107
      group["networks"] = {}
108
      continue
109

  
110
    for network_uuid in group["networks"].keys():
111
      netparams = group["networks"][network_uuid]
112
      if (not isinstance(netparams, dict) or
113
          not netparams.get("link", None) or not netparams.get("mode", None)):
114
        nicparams = constants.NICC_DEFAULTS
115
        group["networks"][network_uuid] = dict(nicparams)
116

  
108 117

  
109 118
def UpgradeInstances(config_data):
110 119
  for instance in config_data["instances"].values():

Also available in: Unified diff