

def _late_link(self, peer_node_id):
    ' Sometimes the peer is unknown even when a tunnel object is needed.\n             This method is called when we have the peer node id.\n        '
    self.peer_node_id = peer_node_id
    if self.peer_node_id:
        if (self.peer_node_id in self.tunnels):
            self.tunnels[self.peer_node_id][self.id] = self
        else:
            self.tunnels[self.peer_node_id] = {
                self.id: self,
            }

dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/runtime/north/calvin_proto.py CalvinTunnel._late_link/original