mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-28 11:18:11 +00:00
Update _convert_2.2.0() with correct comments
This commit is contained in:
parent
eefb3d87b2
commit
2416069a6e
@ -211,14 +211,13 @@ def _convert_2_2_0(topo, topo_path):
|
||||
Convert topologies from GNS3 2.2.x to 3.0
|
||||
|
||||
Changes:
|
||||
* Removed acpi_shutdown option from Qemu, VMware and VirtualBox
|
||||
|
||||
* Convert Qemu and Docker node names to be a valid RFC1123 hostnames.
|
||||
* Convert Dynamips and IOU node names to be a valid IOS hostnames.
|
||||
"""
|
||||
|
||||
topo["revision"] = 10
|
||||
|
||||
for node in topo.get("topology", {}).get("nodes", []):
|
||||
# make sure console_type is not None but "none" string
|
||||
if "properties" in node:
|
||||
if node["node_type"] in ("qemu", "docker") and not is_rfc1123_hostname_valid(node["name"]):
|
||||
new_name = to_rfc1123_hostname(node["name"])
|
||||
|
Loading…
Reference in New Issue
Block a user