gui: adjustment to update drawing asymmetric edge data when joining a session

This commit is contained in:
Blake Harnden 2022-01-26 11:19:30 -08:00
parent 6791269eeb
commit d5b05a39e8
2 changed files with 5 additions and 2 deletions

View file

@ -395,6 +395,7 @@ class CanvasManager:
if token in self.edges and link.options.unidirectional: if token in self.edges and link.options.unidirectional:
edge = self.edges[token] edge = self.edges[token]
edge.asymmetric_link = link edge.asymmetric_link = link
edge.redraw()
elif token not in self.edges: elif token not in self.edges:
edge = CanvasEdge(self.app, src, dst) edge = CanvasEdge(self.app, src, dst)
edge.complete(dst, link) edge.complete(dst, link)

View file

@ -1055,7 +1055,7 @@ class CoreNetworkBase(NodeBase):
unidirectional = 0 unidirectional = 0
linked_node = iface.node linked_node = iface.node
if linked_node is None: if linked_node is None:
# two layer-2 switches/hubs linked together via linknet() # two layer-2 switches/hubs linked together
if not iface.othernet: if not iface.othernet:
continue continue
linked_node = iface.othernet linked_node = iface.othernet
@ -1063,7 +1063,9 @@ class CoreNetworkBase(NodeBase):
continue continue
if iface.local_options != iface.options: if iface.local_options != iface.options:
unidirectional = 1 unidirectional = 1
iface_data = iface.get_data() iface_data = None
else:
iface_data = iface.get_data()
link_data = LinkData( link_data = LinkData(
message_type=flags, message_type=flags,
type=self.linktype, type=self.linktype,