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:
parent
253e113168
commit
b37a282475
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user