

def _update_id(self, id):
    ' While status PENDING we might have a simulataneous tunnel setup\n            from both sides. The tunnel with highest id is used, this is\n            solved by changing the id for the existing tunnel object with\n            this method instead of creating a new and destroying the other.\n        '
    old_id = self.id
    id.id = id
    self.tunnels[self.peer_node_id].pop(old_id)
    self.tunnels[self.peer_node_id][self.id] = self

dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/runtime/north/calvin_proto.py CalvinTunnel._update_id/VarMisuse@20/131 `self`->`id`