Revision 58bf877f tools/cfgupgrade

b/tools/cfgupgrade
97 97
                  " the master node", ssconf_master_node, hostname)
98 98
  return False
99 99

  
100
def UpgradeNetworks(config_data):
101
  networks = config_data.get("networks", None)
102
  if not networks:
103
    config_data["networks"] = {}
104

  
105

  
106
def UpgradeGroups(config_data):
107
  nicparams = config_data["cluster"]["nicparams"]["default"]
108
  for group in config_data["nodegroups"].values():
109
    networks = group.get("networks", None)
110
    if not networks:
111
      group["networks"] = {}
112

  
100 113

  
101 114
def main():
102 115
  """Main program.
......
279 292
                    dry_run=options.dry_run,
280 293
                    backup=True)
281 294

  
295
  UpgradeNetworks(config_data)
296
  UpgradeGroups(config_data)
297

  
282 298
  try:
283 299
    logging.info("Writing configuration file to %s", options.CONFIG_DATA_PATH)
284 300
    utils.WriteFile(file_name=options.CONFIG_DATA_PATH,

Also available in: Unified diff