

def port_disconnect_handler(self, payload):
    ' Reguest for port disconnect '
    reply = self.node.pm.disconnection_request(payload)
    msg = {
        'cmd': 'REPLY',
        'msg_uuid': payload['msg_uuid'],
        'value': reply.encode(),
    }
    self.network.links[payload['from_rt_uuid']].send(msg)

dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/runtime/north/calvin_proto.py CalvinProto.port_disconnect_handler/original