1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-13 20:08:55 +00:00

Correctly restore label position for link

This commit is contained in:
Julien Duponchelle 2016-07-01 21:33:39 +02:00
parent 5bf6011429
commit 9d2f4168ff
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -395,7 +395,7 @@ class Project:
link = yield from self.add_link(link_id=link_data["link_id"])
for node_link in link_data["nodes"]:
node = self.get_node(node_link["node_id"])
yield from link.add_node(node, node_link["adapter_number"], node_link["port_number"])
yield from link.add_node(node, node_link["adapter_number"], node_link["port_number"], label=node_link.get("label"))
for drawing_data in topology.get("drawings", []):
drawing = yield from self.add_drawing(**drawing_data)