From b37a282475a242ef77c17f5619e4ba86735e43a9 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Thu, 20 Jul 2017 16:23:32 +0200 Subject: [PATCH] Raise a NotImplementedError for IPV6 support in old UDP cloud Fix #1093 --- gns3server/controller/topology.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gns3server/controller/topology.py b/gns3server/controller/topology.py index 948f49d2..d88db985 100644 --- a/gns3server/controller/topology.py +++ b/gns3server/controller/topology.py @@ -608,7 +608,10 @@ def _create_cloud(node, old_node, icon): raise NotImplementedError("The conversion of cloud with {} is not supported".format(old_port["name"])) if port_type == "udp": - _, lport, rhost, rport = old_port["name"].split(":") + try: + _, lport, rhost, rport = old_port["name"].split(":") + except ValueError: + raise NotImplementedError("UDP tunnel using IPV6 is not supported in cloud") port = { "name": "UDP tunnel {}".format(len(ports) + 1), "port_number": len(ports) + 1,