1
0
mirror of https://github.com/GNS3/gns3-server synced 2025-01-11 08:30:57 +00:00

Raise a NotImplementedError for IPV6 support in old UDP cloud

Fix #1093
This commit is contained in:
Julien Duponchelle 2017-07-20 16:23:32 +02:00
parent 253e113168
commit b37a282475
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -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,