Revision 351dc34e
b/tools/cfgupgrade | ||
---|---|---|
118 | 118 |
def UpgradeInstances(config_data): |
119 | 119 |
for instance in config_data["instances"].values(): |
120 | 120 |
instance["hotplugs"] = 0 |
121 |
for nic in instance["nics"]: |
|
122 |
nic["idx"] = -1 |
|
121 |
for i, nic in enumerate(instance["nics"]): |
|
122 |
nic["idx"] = i |
|
123 |
instance["hotplugs"] = instance["hotplugs"] + 1 |
|
123 | 124 |
|
124 | 125 |
|
125 | 126 |
def main(): |
Also available in: Unified diff